Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: fileexist fileopen Filesize==0
I want to import a file to another program, and the file must be closed before I import it. How can I check to see if the file is open?
a=FileExist("yourfile") a==0 then no file. a==1 file exists. Looks OK. a==2 file exists. Not currently accessible.
Filesize==0
While !FileExist("filename") TimeDelay(1) endwhile While FileSize("filename")==0 TimeDelay(1) endwhile
Article ID: W13226
Filename: Check if File is Open or Exists.txt
File Created: 2001:01:03:11:39:40
Last Updated: 2001:01:03:11:39:40