> >but my main concern now is that during the time (when the >copying from S-->C starts and the start of deletion process) >its approximately 3-4 seconds,, there may be some new files >that are coming in to S and are getting deleted .. >
It's quite easy, actually. Create a subdirectory on S. In your script, set up some commands to delete anything already in the subdirectory and copy and delete all the new content from the parent directory into the subdirectory. Then copy the contents of your subdirectory over to C. This way you only get the freshest files being sent to C and there is little or no waiting time between copying the old files, deleting them and new files being created. Here is a sample script: TRACE c:\logs\trace.txt LOG c:\logs\log.txt USER username PASS password CONNECT your.ftp.server.name CD /C_directory SHELL del /q c:\S_directory\temp\*.* SHELL copy c:\S_directory\*.* c:\S_directory\temp SHELL del /q c:\S_directory\*.* MPUT c:\S_directory\temp\* /C_directory CLOSE Note: you MUST do all your copy & delete processes BEFORE you send the files with mput. If you don't then the script will hang because the FTP session will take control of the files and won't let the commandline session delete them. Also, if you want to run this unattended then the /q switch needs to be added to the del command. This tells the commandline to delete the files without requiring confirmation (otherwise DOS will be sitting in the background with a "Are you sure you want to delete these files y/n)? " and waiting for a response). Chazzozz!! Michael Shannon Webmaster [EMAIL PROTECTED] "Before you can grow old and wise you must first survive being young and stupid." - Ancient Proverb Note: Opinions expressed on this list are my own and do not reflect the views, opinions or position of my employer. If swallowed, seek medical advice. Please visit http://www.ipswitch.com/support/mailing-lists.html to be removed from this list.
