| | | Forum Newbie
       
Group: Forum Members Last Login: 8/5/2004 9:46:00 AM Posts: 1, Visits: 1 |
| Moving files from folder to folder We are a printing company. Our CSRs (Customer Sales Reps) receive image files from customers via ipswitch ftp. Depending on whether or not we are going to print it inhouse or outside the file needs to be moved to one of 8 different folders so that the proper vendor can pick it up. Each vendor has their own private folder / userid/password. So for a CSR to move a file the go to their windows desktop and drag the file (1 to 30 meg.) from one folder to another. so now that file travels up the network to the PC and then back down again. What we need is a away to tell some application on the server to move the bugger from "A" to "B". Any ideas?
BBF Tech Support |
| | | | 
Time Traveler
       
Group: Moderators Last Login: 7/16/2008 8:55:05 AM Posts: 176, Visits: 9 |
| Two commands exist the FTP specification to help you: RNFR and RNTO. To use these in WS_FTP Pro, Either use the QUOTE command to run each (right click the remote window and select "QUOTE" under the "Operations" submenu), or set up a script.
To move, say, pic.jpg from the current folder to a different user folder, you would do something like this:
RNFR pic.jpg RNTO ../user1/pic.jpg
Or use the whole path, if you know it. That will remove pic.jpg from your directory and move it into the user1 directory. Note that if you use WS_FTP Pro's QUOTE option, both of those commands are separate QUOTE calls.
Try that out and see if it works for you.
Brandon Felger
IMail Install Developer
Ipswitch |
| | | | 
Time Traveler
       
Group: Moderators Last Login: 7/16/2008 8:55:05 AM Posts: 176, Visits: 9 |
| I just realized there's an easier way to move files without using the QUOTE command.
Select the file in the remote connection pane, and click the "rename" icon. In the dialog box asking for the new name, type the full or relative path and the file name that you want to move it to. For instance, rename "pic.jpg" to "../user1/pic.jpg" or "/home/user1/pic.jpg" or whatever. You are able to use the "rename" option as a "move" command because it uses the RNFR and RNTO commands.
Also (and I wish I'd thought of this), you can copy and paste using the context menu (right-click on the file). This also uses RNFR and RNTO.
Brandon Felger
IMail Install Developer
Ipswitch |
| |
|
|