Dave, I had to break my FTP procedures down into small actions. This will allow me to have more control what is going on with the process and to stop one of the actions at anytime. Here's what I have, hope this helps. ---------------------------------------------------------------------------- -------------- My Batch File to send the file to a ftp site:
REM PATH = %path%;e:\Progra~1\wsftppro > test.txt 2>&1 ftpscrpt FTP.scr >> test.txt 2>&1 ---------------------------------------------------------------------------- ---------------- My FTP Script: ; This script will upload FTP information ; TRACE E:\Program Files\Tie Commerce\Evision\Outbound\FTP\transfertrace880.txt LOG E:\Program Files\Tie Commerce\Evision\Outbound\FTP\transferlog880.txt USER user.id PASS password CONNECT ftp.site CD in LCD E:\Program Files\TIE Commerce\eVision\data\carrier ONERROR GOTO DISCONNECT MPUT ftp.file LABEL DISCONNECT CLOSE ---------------------------------------------------------------------------- --------------- The Batch File to get and remove the file from the FTP site. REM PATH = %path%;e:\Progra~1\wsftppro > test.txt 2>&1 ftpscrpt Confirm.GET.FTP.scr >> test.txt 2>&1 ---------------------------------------------------------------------------- ---------------- ; This script will download FTP information ; TRACE E:\Program Files\Tie Commerce\Evision\inbound\Confirmations\transfertrace997.txt LOG E:\Program Files\Tie Commerce\Evision\inbound\Confirmations\transferlog997.txt USER user.id PASS password CONNECT ftp.site CD out LCD E:\Program Files\TIE Commerce\eVision\inbound\Confirmations ONERROR GOTO DISCONNECT MGET *.edi MDELETE *.edi LABEL DISCONNECT CLOSE Ken Smither Sherwood Foods Distributors (Ph): 602-863-2157 (Fax): 602-863-2159 ----- Original Message ----- From: "Compton, David L" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 20, 2003 8:38 AM 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.
