blank.gif (43 bytes)

Church Of The
Swimming Elephant

Search:
index.gif

ntcmds00000000.gif

If

Performs conditional processing in batch programs. If the condition specified in an if command is true, Windows NT carries out the command that follows the condition. If the condition is false, Windows NT ignores the command.

if [not] errorlevel number command

if [not] string1==string2 command

if [not] exist filename command

Parameters

not

Specifies that Windows NT should carry out the command only if the condition is false.

errorlevel number

Specifies a true condition only if the previous program run by CMD.EXE returned an exit code equal to or greater than number.

command

Specifies the command that Windows NT should carry out if the preceding condition is met.

string1==string2

Specifies a true condition only if string1 and string2 are the same. These values can be literal strings or batch variables (%1, for example). Literal strings do not need quotation marks.

exist filename

Specifies a true condition if filename exists.

More Information About If

ntcmds00000001.gif If--Notes

ntcmds00000001.gif If--Examples

Cotse.Net

Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

 
.
www.cotse.com
Have you gone to church today?
.
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 Cotse.com.
Cotse.com is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609