SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FTPFileExists

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FTPFileExists
Author Message
Jeff



Joined: 29 Apr 2002
Posts: 37

Post FTPFileExists Reply with quote

I'm trying to determine if a particular file exists on an ftp server. I am using the following command: FTPFileExists( "ftpserver", "id", "password", "//apps//prod//jeff.txt", found ) Each time I debug this script it returns "true" for my found variable even if the file does not exist on the ftp server. Any ideas what I'm doing wrong?
Thanks,
Jeff

Thu Jun 30, 2005 3:40 pm View user's profile Send private message
Jeff



Joined: 29 Apr 2002
Posts: 37

Post Re: FTPFileExists Reply with quote

Sorry, I see Norm was having this same problem on 6/16. I will try to use the ftpdir statement as a workaround as well unless you know the problem with the ftpfileexists function.
Thanks,
Jeff

: I'm trying to determine if a particular file exists on an ftp server. I am
: using the following command: FTPFileExists( "ftpserver",
: "id", "password", "//apps//prod//jeff.txt",
: found ) Each time I debug this script it returns "true" for my
: found variable even if the file does not exist on the ftp server. Any
: ideas what I'm doing wrong?
: Thanks,
: Jeff

Thu Jun 30, 2005 3:54 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7975

Post Re: FTPFileExists Reply with quote

It appears that FTPFileExists doesn't work with some FTP servers. Use FTPDir instead.

Here is how

Dim( results, string )
Dim( found , boolean )
FTPDir( FTPAcct, FTPUser, FTPPw, TargetFile, results )
IsEqual( "", results, found )

: I'm trying to determine if a particular file exists on an ftp server. I am
: using the following command: FTPFileExists( "ftpserver",
: "id", "password", "//apps//prod//jeff.txt",
: found ) Each time I debug this script it returns "true" for my
: found variable even if the file does not exist on the ftp server. Any
: ideas what I'm doing wrong?
: Thanks,
: Jeff

Thu Jun 30, 2005 3:56 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.