File Loop

Discuss RoboTask here
Post Reply
HRaj
Posts: 6
Joined: Wed Feb 06, 2008 7:47 am

File Loop

Post by HRaj »

I am new o Robotask.
Here is what I am trying to do. I am doing a FTP of all the files in a directory. after every file transfer I will check the file size in the local directory with the file size in the remote directory. If the file size is not equal I will FTP the file again. So, I want a loop around the routine and it should break out of the loop if and only if the file size is equal.
Here is what I have written. Let me know if this will work or if there is a better way to do this.
File Loop ( search for files - C:\abcd.xml, assign current filename to variable - abcd.xml)
if {FileSize(c:\abcd.dat)} <> {FileSize({{REMOTEFILE}})} then 
   FTP Upload
else
   break
end if
End Loop
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

File Loop

Post by Oleg »

See my post here
Post Reply