Can you use a sync job instead?

You could set it up so that it deletes the files (on a file by file basis)
from client B after it passes it over to Client A. One issue may be if you
want to sync only one type of file (*.txt), and the location you are
checking has many other file types.  In that case, you'd need to set up an
exclusion list for file types or specific files.

Hope this helps!
Laima  

-----Original Message-----
From: Compton, David L [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 10, 2003 3:00 PM
To: [EMAIL PROTECTED]
Subject: [WS_FTP Forum] Scripting Problem


I have two windows 2000 boxes.  One of them (server A) is running WS_FTP
server and SSH server the other (client B) has WS_FTP Pro client.

I have a script that runs on the WS_FTP Pro client (client B) as a scheduled
task every hour.  It contacts the FTP server (server A), checks to see if
there are any new files and FTPs them if there are.  Here is the problem.

I want to delete the files from the server once they have been transferred
however, I'm using "mget *.txt" to get them and "mdelete *.txt" to 
delete them.  Normally this works great however, the server side is feed
from yet another server and I'm afraid that an "mdelete *.txt" might
delete a file that transferred to (server A) between the initial "mget
*.txt" and the "mdelete *.txt"  Is there anyway to ensure this doesn't
happen?
It would be great if there was a way in the scripting language to get a
directory listing prior to issuing the MGET command and then issuing is on a
per file basis.  I could do this in UNIX but frankly I'm not that good in
windows.  Anyone know how to do this?

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.

Reply via email to