SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FTPRename doesn't work

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FTPRename doesn't work
Author Message
Bob Shaw



Joined: 16 Feb 2000
Posts: 2

Post FTPRename doesn't work Reply with quote

Hello,
I have versions 1.6.3 and 2.0.1, and in both cases, the function FTPRename does not work. I get an error when checking the syntax that there is a bad number of arguments. If I do run the script anyway, it just hangs...

Enclosed is the script I used to test
Dim exists, Boolean
FTPFileExists("ftp.mycompany.com", "myid", "mypassword", "file.zip",exists )
FTPRename("ftp.mycompany.com", "myid", "mypassword", "file.zip", "file1.zip" )
Dim exists1, Boolean
FTPFileExists("ftp.mycompany.com", "myid", "mypassword", "file1.zip",exists1 )
Exit

Thanks,
-Bob

Tue Mar 28, 2000 11:37 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7839

Post Re: FTPRename doesn't work Reply with quote

There is a discrepancy between the Script Editor and the Script Engine:
editor recognizes and highlights the FTPRename keyword where the engine expects FTPRenameFile. Please change you script to use FTPRenameFile instead of FTPRename. Both the editor and the documentation will be fixed in the next maintanence version to reflect the correct syntax.

: Hello,
: I have versions 1.6.3 and 2.0.1, and in both cases, the function FTPRename
: does not work. I get an error when checking the syntax that there is a bad
: number of arguments. If I do run the script anyway, it just hangs...

: Enclosed is the script I used to test
: Dim exists, Boolean
: FTPFileExists("ftp.mycompany.com", "myid",
: "mypassword", "file.zip",exists )
: FTPRename("ftp.mycompany.com", "myid",
: "mypassword", "file.zip", "file1.zip" )
: Dim exists1, Boolean
: FTPFileExists("ftp.mycompany.com", "myid",
: "mypassword", "file1.zip",exists1 )
: Exit

: Thanks,
: -Bob

Tue Mar 28, 2000 12:04 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.