Check for File Exist

Discuss RoboTask here
Post Reply
Vikram
Posts: 3
Joined: Fri Apr 22, 2005 9:51 am
Location: United States

Check for File Exist

Post by Vikram »

HI,
How can i check whether a file exist in a particular folder.
Thanks
Vikram
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Check for File Exist

Post 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
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Check for File Exist

Post by Oleg »

Also you can use full path to file. For example:
{FileExists(C:\Program Files\Common Files\Microsoft Shared\Help\dexplore.exe)}
Post Reply