Download and Move or Rename

Core FTP client questions and answers
Locked
jwiedmier
Posts: 2
Joined: Thu Jul 12, 2012 1:44 pm

Download and Move or Rename

Post by jwiedmier »

I have been looking through the Forums and so far have not been able to get my process to work.

I would like to download my .csv file from my host site and then move the file to a new location on the host.

Example:
Download File from \14500\Customer\14500_Customer_2012_07_12.csv
Move file to \14500\Customer\Archive\14500_Customer_2012_07_12.csv

These files are generated nightly and I using the scheduler to download them to my local.

I would also be willing leave the files in the same location and just rename them, not my preferable method but acceptable.

Example:
Download File from \14500\Customer\14500_Customer_2012_07_12.csv
Rename file to \14500\Customer\14500_Customer_2012_07_12.bak

Your help would be greatly appreciated.

Thanks, Jason
jwiedmier
Posts: 2
Joined: Thu Jul 12, 2012 1:44 pm

Post by jwiedmier »

I hope this helps someone else as it is fairly simple but took me quite a bit of time and frustration to get it right.

I posted the following commands in the Site Profile --> Advanced --> Script/Cmds --> Post Transfer Commands

RNFR %1
RNTO Archive/%1

If you just want to leave it in the same folder you can use the following

RNFR %1
RNTO Archive/%1.bak
Locked