EXISTS filename Returns a value of 1 or 0, depending on whether or not a file exists. If the file exists, the script carries out the commands specified by an IF command. e.g. IF EXISTS "C:\ Files\ Log"= 1 THEN GOTO gotlog ENDIF GOTO nolog checks to see if there is a file called ‘Log' in the ‘Files' folder. If there is (i. e. if EXISTS returns a value of 1), the script jumps to the ‘gotlog' label. If there is no such file (and EXISTS returns 0), the script jumps to the ‘nolog' label. EXISTS can also be used to assign a value to a variable. e.g. SEND EXISTS "C:\ Files\ Log" will send 0 or 1 depending on whether or not the file exists, while gotlogfile$= EXISTS "C:\ Files\ Log" sets the value of the string according to the value returned by EXISTS.