Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ftp renaming question

Status
Not open for further replies.

Matta25

Technical User
Jan 6, 2004
82
US
I need to rename a file on the remote side, but the file in in the /out folder and I need to rename it to the /out/backup folder. Any ideas.
thanks
 
Are you able to do this manually when connected to the FTP server? I was able to do, just to make sure that Procomm could handle this since the FTP client only performs basic operations.

Here is the command that you would need to use (tested it and it worked fine for me) to copy that file from one folder to another. It assumes that you are already in the /out folder, so you may need to modify the path information:

proc main
ftp remote rename "file.txt" "backup/file.txt"
endproc

Of course, you would need to replace file.txt with the actual filename (or a string variable containing the filename).

aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top