SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FTPFileExists returns False

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



Joined: 02 Feb 2000
Posts: 28

Post FTPFileExists returns False Reply with quote

The FTPFileExists command in the following script does not return correctly. The FTPDeleteFIle command works. The file is on the FTP server and the case is exact. If I check a file on the root directory it works found, but when I try to check a file in a directory it always returns FALSE.

dim server,string,"172.22.3.229"
dim user, string,"user"
dim password, string,"password"
dim found, boolean
dim DelFile, string
Set Delfile,"C:\\htdocs\\Intranet\\OEF\\FDFPrint\PDF176.fdf"

FTPFileExists( Server, User, Password, DelFile, found )
messagebox(found)
FTPDeleteFile( Server, User, Password, DelFile)

Fri Feb 11, 2000 1:52 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: FTPFileExists returns False Reply with quote

You don't have permission for one of the subdirectories in the path to your file and that is causing the error. Contact your sysadmin to obtain necessary permissions.

: The FTPFileExists command in the following script does not return correctly.
: The FTPDeleteFIle command works. The file is on the FTP server and the
: case is exact. If I check a file on the root directory it works found, but
: when I try to check a file in a directory it always returns FALSE.

: dim server,string,"172.22.3.229"
: dim user, string,"user"
: dim password, string,"password"
: dim found, boolean
: dim DelFile, string
: Set Delfile,"C:\\htdocs\\Intranet\\OEF\\FDFPrint\PDF176.fdf"

: FTPFileExists( Server, User, Password, DelFile, found )
: messagebox(found)
: FTPDeleteFile( Server, User, Password, DelFile)

Fri Feb 11, 2000 3:16 pm View user's profile Send private message
Robert Conatser



Joined: 02 Feb 2000
Posts: 28

Post Re: FTPFileExists returns False Reply with quote

I double check permission on my FTP server (WAR FTP ver 1.65 on NT 4.0) and I have full access to all directories. ran script in several different files in several directories with same problem. Could there be a problem using the WAR FTP server?

: You don't have permission for one of the subdirectories in the path to your
: file and that is causing the error. Contact your sysadmin to obtain
: necessary permissions.

Fri Feb 11, 2000 3:43 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: FTPFileExists returns False Reply with quote

I don't know whether this is because of using the WAR FTP server.

Have you tried using FTPDir statement to get the list of files? If not try the following:
Dim file_list, string
Dim file_exists, boolean
FTPDir "C:\\htdocs\\Intranet\\OEF\\FDFPrint\PDF176.fdf", file_list
isNotEqual file_list, "", file_exists

: I double check permission on my FTP server (WAR FTP ver 1.65 on NT 4.0) and I
: have full access to all directories. ran script in several different files
: in several directories with same problem. Could there be a problem using
: the WAR FTP server?

Fri Feb 11, 2000 3:58 pm View user's profile Send private message
Robert Conatser



Joined: 02 Feb 2000
Posts: 28

Post Re: FTPFileExists returns False Reply with quote

I'm using the FTPSync command to copy the files from the FTP server then using DIR (NOT FTPDIR) to verify the file has been copied before I delete them from the FTP server. The FTPFileExist is a extra step to ensure the FTPDeleteFile command is going to run. I've a work around by creating a new user that root is the directory i'm deleting from and this works fine.

: I don't know whether this is because of using the WAR FTP server.

: Have you tried using FTPDir statement to get the list of files? If not try
: the following: Dim file_list, string
: Dim file_exists, boolean
: FTPDir "C:\\htdocs\\Intranet\\OEF\\FDFPrint\PDF176.fdf", file_list
: isNotEqual file_list, "", file_exists

Fri Feb 11, 2000 4:07 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.