Page 1 of 1

Check for File Exist

Posted: Mon Sep 19, 2005 3:20 pm
by Vikram
HI,
How can i check whether a file exist in a particular folder.
Thanks
Vikram

Check for File Exist

Posted: Tue Sep 20, 2005 3:47 am
by Oleg
There is FileExists() system variable. You can use construction like this:

Change folder to desired
If {FileExists(FileName.ext)}=true then
   ......
   Do something
   ......
End if

I can write an example, if needed

Check for File Exist

Posted: Tue Sep 20, 2005 3:50 am
by Oleg
Also you can use full path to file. For example:
{FileExists(C:\Program Files\Common Files\Microsoft Shared\Help\dexplore.exe)}