David,
I'm no expert, but here's what I do for a similar job. 

I first delete all files from my temp folder using the DOS delete command
with the /Q option.  Then I copy the files into the temp folder again using
DOS.  Finally, I use the Synch utility to move them from site A to site B.
To do the latter I call the Synch program from DOS and use a control file.
I delete the files first in case the Synch fails for some reason and I have
to restart that process.

If you need examples let me know.

Barbara

-----Original Message-----
From: Compton, David L [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 20, 2003 8: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.

*****************************************************************
This e-mail and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
which they are addressed. If you have received this in error,
you must not use or disseminate any information contained in it.
Please send it back to the person who sent it to you and delete
it from your system. This footnote also confirms that this e-mail
message has been swept by Sybari's Antigen for the presence of
computer viruses. However, we cannot guarantee that this trans-
mission is virus free, nor can we guarantee that this e-mail is
secure or error-free as information could be intercepted,
corrupted, lost, destroyed, or arrive late or incomplete. J.D.
Power and Associates therefore does not accept liability for loss
or damage suffered as a result of this transmission or for any
errors or omissions in the contents of this e-mail.
*****************************************************************


Please visit http://www.ipswitch.com/support/mailing-lists.html to be removed from 
this list.

Reply via email to