Firewall Status Alarm in Batch

September 4, 2016 at 10:34:44
Specs: Windows XP 32-bit, Intel Pentium 4/504MB
So I'm making this security monitoring program in Windows XP, I want it to beep and tell me if a hacker disabled my firewall or got past it. Basically detect a hacker. This would kind of be a sketch:

@echo off
if %a%=="disabled"
Echo Firewall Disabled. Re-enable?
set /p C=y/n
If %C% == "y"
else exit
if %a%=="enabled"

See More: Firewall Status Alarm in Batch

Reply ↓  Report •

September 4, 2016 at 22:25:10
I don't know what the question is but here are some tips

IF structure
if condition (
do this
do that
) else (
do something
or other
the is no END in XP bat
for homework: why is this unlikey to ever resolve TRUE

set /p C=y/n
If %C% == "y"


M2 Get custom script or take private lessons

message edited by Mechanix2Go

Reply ↓  Report •
Related Solutions

Ask Question