i have some problems with my litte batchfile.
i want to create a batchfile that shows my firewall status. so i thought i could write "net start" to a file and read with findstr if there exists the word "firewall" if yes the it should jump to :yes and echo yes. elso to :no and show echo no!
CODE
@echo off
net start>>temp.log
if exists findstr /C:"firewall" goto yes elso no
:yes
FIrewall is running.
pause
exit
:no
echo Your PC is not protected
pause
delete temp.log
exit
but that thing with the if findstr doesn't work. any other ideas?
thx in advance
bb





