There is a way to check whether a file exists:
Is there also a simple way to check whether a directory exists?
If I try to create a directory through a script and the directory already exists, I get an error that my operator needs to respond to. I am trying to get rid of this error message by trying to check whether that directory already exists, and if so, then skip the directory generation process.
Any ideas welcome, Thanks, Jan.
Code:
V19 =FILE/EXISTS,"C:\ARCHIVE\PN"+PARTNAME+"SN"+SERIALNUMBER+"\CHECK_FILE_DO_NOT_DELETE.TXT"
If I try to create a directory through a script and the directory already exists, I get an error that my operator needs to respond to. I am trying to get rid of this error message by trying to check whether that directory already exists, and if so, then skip the directory generation process.
Any ideas welcome, Thanks, Jan.
Comment