Testing if file exist
Testing if file exist
(OP)
Hello word,
I'm back lol
Is't possible to test if a dos file (ex: 'Photos/mypicture.jpg')exist?
May be by using "Directory"? Is there an other way?
Thank you for your help
Have a good day
I'm back lol
Is't possible to test if a dos file (ex: 'Photos/mypicture.jpg')exist?
May be by using "Directory"? Is there an other way?
Thank you for your help
Have a good day
RE: Testing if file exist
IF EXISTS('C:\Test\Test.log')
Do ...
ELSE
Do ...
END
cagiv
RE: Testing if file exist
I had not found "exists" in my "language reference" book but it works very well.
Good evening
RE: Testing if file exist
You can use EXISTS() to check if a folder exists by using
IF EXISTS('C:\Test\')
...
or
IF EXISTS('C:\Test\.')
...
Regards