views:

1039

answers:

1

Hello,

I have an FTP batch file that uses DOS commands to pull down some files. After I'm done pulling the files down, I would like to move the files to an archive directory on the remote server. What FTP DOS commands do I use to accomplish this?

*I wasn't clear at first but this move has to take place on the remote server.

+2  A: 

before you pull the files down, you can use the lcd (local cd) command to move to your archive directory and then pull them down directly there. you can then lcd back to your working directory.

otherwise you can perform the move in your bat after your ftp session is completed.

edit:

in the case that your archive server is remote, your best bet is to finish your ftp session and then perform the move in your .bat.

akf