View unanswered posts | View active topics It is currently 16 Apr 2014 19:53



Post new topic Reply to topic  [ 6 posts ] 
check registry values and firewall rules [solved] 
Author Message

Joined: 26 Oct 2011 22:38
Posts: 1007
Location: Egypt
Post check registry values and firewall rules [solved]
how to check for a certain registry value and firewall rule using batch file :?:


Last edited by abc0502 on 12 Mar 2012 00:30, edited 1 time in total.



04 Mar 2012 09:55
Profile
Expert

Joined: 22 Jan 2010 18:01
Posts: 1681
Location: Germany
Post Re: check registry values and firewall rules
Depends on what exactly you're looking for.
REG QUERY to read registry values.
NETSH ADVFIREWALL to define or get settings about the firewall.
try
Code:
netsh advfirewall firewall show rule name=all type=dynamic

Regards
aGerman


04 Mar 2012 10:26
Profile

Joined: 26 Oct 2011 22:38
Posts: 1007
Location: Egypt
Post Re: check registry values and firewall rules
Thanks Worked fine :D
This is how for any one else want the code:
Code:
netsh advfirewall firewall show rule name="uTorrent" >nul
if %errorlevel%== 0  ECHO uTorrent Firewall Rule Exist
) Else ( ECHO uTorrent Firewall Rule Doesn't Exist )


The Registry
Code:
set a=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
REG QUERY "%a%" /v "uTorrent" /s >nul
if %errorlevel%== 0 ( ECHO uTorrent Startup Entry Exist
) Else ( ECHO uTorrent Startup Entry Doesn't Exist )

replace the rule name in firewall and the startup entry name in registry with your program and the message after ECHO


04 Mar 2012 10:34
Profile

Joined: 25 May 2012 01:03
Posts: 1
Post Re: check registry values and firewall rules [solved]
How to have utorrent finish a torrent download from Bittorrent? I'm switching over from using Bittorrent to utorrent, but I have a huge unfinished file to download that's halfway through. I don't wanna start it over, so I need to know how I can have utorrent finish it (w/o accidently reseting the download to 0%). So, what do I need to do to have utorrent finish my Bittorrent download?


04 Jun 2012 00:36
Profile

Joined: 21 Nov 2010 08:07
Posts: 205
Location: At My Computer
Post Re: check registry values and firewall rules [solved]
Good Stuff!!

But how can I add an exception in Windows Firewall for a program via your code and reg??
ex. say I want to add a startup entry for uTorrent... :?:


18 Jun 2012 11:44
Profile

Joined: 28 Jun 2010 03:46
Posts: 125
Post Re: check registry values and firewall rules [solved]
@yaiohena:

This is offtopic, but utorrent was mentioned above so:

I would do this:

1. Maybe you could make a backup of these partialy downloaded files?
2. open this .torrent file with uTorrent - make sure download location is the same. Also make sure it does *not* start.
3. right click on the torrent and select Recheck (or something like this).
4. It should start checking what you have - it should finish with the same downloaded value - if not then it would mean that your download location is not the same.
5. When it finishes just click Start or Force start.

This is confirmed to be working.

Saso


19 Jun 2012 16:29
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


Who is online

Users browsing this forum: Google [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forums/DivisionCore.