07-09-2004, 08:14 PM
I'm trying to check the existence of a file on a Unix box via ftp (I use WS_Ftp and batch file ftp to dnld from it regularly) but I keep getting an error.
I can get it to download the file but I don't want it to download it just check to see if it is there (I thought to use "modtime") and if the str is "" then wait and retry the process.
However, I can't seem to get the ".Cmd" function to work even with "ls".
Any ideas what I'm doing wrong?
I can get it to download the file but I don't want it to download it just check to see if it is there (I thought to use "modtime") and if the str is "" then wait and retry the process.
However, I can't seem to get the ".Cmd" function to work even with "ls".
Quote:str ss
m.timeout=1
Ftp f.Connect("#######" "********" "##*##*####")
f.DirSet("*************")
f.Cmd("ls" &ss 1)
out ss
Any ideas what I'm doing wrong?