Help With "If" commands (Batch Programing)?

Justin

New member
I'm using an "If not exists" command in my bat file with these codes:

if not exist Security.bat goto Security Breach
:Security Breach
echo Security Breach.
echo Please Send An Email To *An Email [email protected] For Technical Information.
echo Press Any Key To Exit

I have this working perfectly, but now I want to add a code to check the file size prior to continuing.
example:
if not exist Security.bat file size 23 bytes goto Security Breach

Any help would be greatly appreciated.
Oh btw If my post made absolutely no sense, please let me know... lol because ive been getting that alot lately.

thanks
 
Back
Top