Google Answers Logo
View Question
 
Q: Batch File & ftp.exe question ( No Answer,   0 Comments )
Question  
Subject: Batch File & ftp.exe question
Category: Computers > Programming
Asked by: jaboo-ga
List Price: $15.00
Posted: 20 Sep 2005 09:00 PDT
Expires: 20 Sep 2005 17:53 PDT
Question ID: 570120
Batch file question using native ftp.exe program....

I am currently using a batch file with an ftp.exe script to 
MGET *.XYZ   and then MDELETE *.XYZ from an ftp site.
This worked well, until it started deleting files that were never downloaded.
They were added during/after the MGET so they just get deleted.

The files are numerically sequential files but I have no way of
knowing the current number.

Is there anyway make this work with just Batch File & ftp.exe

I tried to REN *.XYZ *.PEN then DL & deleted those, but you can rename
with wildcards...

You can't pass command line parameters to ftp except for pre-made scripts (i think)

There is no delete after download option that I know of.

Is there any way to make this work...

I was thinking it might be possible to do a local "IF EXISTS" then an
ftp delete, but I don't know the file names.

Can a list of filenames be downloaded then used?

Are there any other DOS programs that can run in a batch file that
could do get first, delete first?

I am perfectly ok with Get/Delete one by one.

I would prefer to continue using ftp.exe if possible.

Thanks,
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy