File not found

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Bill

File not found

Post by Bill » Tue Aug 10, 2004 8:18 pm

Trying again..
I am using the following script:

IF>FileExists>c:\Mydir\myfile\multipage\maildata\mailout1.txt =TRUE
Label>start

Rest of script.

This works fine as long as there is a file by that name. I look for multiple files 1-10 and some do not exist from day to day.

What should the script read if the file is not present to keep the script running looking for the next filename in the script?

If you would spell it out --it would be greatly appreciated. I just can't get past this part.

Thanks..

Bill

Lumumba

Post by Lumumba » Tue Aug 10, 2004 9:20 pm

Let>fc=0

Label>FileDetect
Add>fc,1
If>fc=11, Done
IFFileExists>c:\Mydir\myfile\multipage\maildata\mailout%fc%.txt =TRUE, Start, FileDetect

Label>Start
.
.
.
Goto>FileDetect

Label>Done
MessageModal>Yehaaa !

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts