
Re: check registry values and firewall rules
Thanks Worked fine

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