Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- MS-DOS Line - syntax - if [not] condition command http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    Syntax - IF [NOT] condition command

    (Internal) Allows conditional execution of commands in batch file
    processing.

        NOT     executes the command only when the condition is FALSE.

        conditions are:

            ERRORLEVEL number    executes the command only if the program
                                 previously executed by COMMAND has an exit
                                 code of number or higher.

            string1 = = string2  executes the command only if string 1 and
                                 string 2 are identical after parameter
                                 substitution.

            EXIST filename       executes the command only if filename exists.

    Example:
            if exist pfspro.txt goto g

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson