I'm new to WS_FTP pro myself, but here's what I'd do. (I don't have ws_ftp server)
My understanding is that mdelete will only work on the ftp site, not on the local machine. I'm pretty new to ws_ftp pro, but I'll tell you how I'd do this using a script. First, create a site in either the My Sites or Shared Sites for your ServerB, setting up you username and password there. By doing so, you increase security by having your user name and password only in one place. The following script connects to ServerB, moves the *.jpg's from my local directory to the folder indicated on ServerB, and then deletes the *.jpgs in the local folder by using the DOS shell. log c:\abc.txt CONNECT MySites!ServerB cd images onsuccess goto filedelete mput c:\test\*.jpg label filedelete shell del c:\test\*.jpg labeldisconnect close -----Original Message----- From: Compton, David L [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 10:39 AM To: [EMAIL PROTECTED] Subject: [WS_FTP Forum] Permissions denied error Hi, I'm new to WS_FTP Pro and the WS_FTP Server but trying to learn. I'm attempting to set up an automated process between two servers. Server A has files in a "temp" that need to go to server B. Once there they need to be deleted from the "temp" directory on server A. I believe that the only way to do this is to use ftpscrpt. Directory synchronizing doesn't allow me to delete files from the original directory and I don't want to move duplicate files from A to B nor can I allow the files to just grow on A. So the easiest thing I can think of is to delete from A after the transfer. Anyway here is a copy of the script I'm using. TRACE C:\temp\transfertrace.txt LOG C:\temp\transferlog.txt USER username1 PASS password1 CONNECT ftp_server CD /FTP LCD C:\temp\hold_files ONSUCCESS GOTO FILEDELETE ONERROR GOTO DISCONNECT MGET *.txt LABEL FILEDELETE MDELETE *.txt LABEL DISCONNECT CLOSE <<<<< End of script >>>>> I have checked the directory on server A and the user I'm logging is as has full control. It's the same username/group membership, etc on both servers. Both servers are running Windows 2000. When I view the transferlog.txt file after stepping through the script using FTP Script Manager I see that the files where in fact transferred. When it executes the MDELETE line I see it trying to delete the file and then it gets a permission denied error and goes the DISCONNECT label. I'm not understanding what's happening here. I understand the permission denied but not really why I'm getting it. Any thoughts? David Compton (Dave) Project Manager, IRM/OPS/MSO/MSP/PM SA-34 (Room 2210A) E-mail: [EMAIL PROTECTED] Tel: 703-912-8483 Fax: 703-912-8668 This message is: UNCLASSIFIED in accordance with E.O. 12958 Please visit http://www.ipswitch.com/support/mailing-lists.html to be removed from this list. Please visit http://www.ipswitch.com/support/mailing-lists.html to be removed from this list.
