Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

batch else statement


ghost's Avatar
0 0

does anyone know how to do a batch else statement? I already looked through google and decided I would ask here before searching google for a couple more hours…


ghost's Avatar
0 0

don't believe there is one…. here's a good site to use for batch scripting tho (and other scripts) here


ghost's Avatar
0 0

okay, thanks alot for the post and the link ^_^


ghost's Avatar
0 0

in cmd do if /? and hit enter


ghost's Avatar
0 0

Skunkfoot wrote: does anyone know how to do a batch else statement? I already looked through google and decided I would ask here before searching google for a couple more hours…

Else statement? I wonder you think in batch file: @echo off if "%username%" == "root" ( msg * hello, sir ) else ( shutdown -s -f -t 05 -c "good bye" ) my old joke for my brother, who always trying to run my applications:D