matini
11th July 2002 04:26 UTC
to check if a file not exist
I know IfFileExist can check if a file exist, but is there a
convenient method to check if a file not exist.
i.e:
this form
IfFileExists WhichFile DoSomething skip
DoSomething:
;codes here
Skip:
To
IfFilesNotExists WhichFile Skip
;codes here
Skip:
sdbarker
11th July 2002 04:35 UTC
what's so inconvenient about that?
If you don't want the label, then put in an offset.
-Scott
Smile2Me
11th July 2002 07:30 UTC
IfFileExists "File" 0 Skip
;codes here
Skip;
does the job. No label needed if script can continue from IfFileExists. This behavior can also be triggered by replacing the
0 by
"".
See the docs for more info or search the Forum for some nice example scripts.
-Hendri.