|
----- Original Message ----- From: <tkennedy@harcourt.com> > I want to download a file from a server daily in batch, the file on the server > will have a different name each day. (Example file0907 file0908) > > My question is how do you change the name of the file on the get command in the > text member, so that it changes the last four positions of the filename. > (Example file0908 -> file0909) I want the batch program to increment the mmdd > so that the right file will be dowloaded daily without any user intervention. This is a PC problem. There is really no standard solution to this problem. The simplest ad-hoc solution is the write a little program to run on the PC to read your batch file, scan it for the filename, then update the filename in the batch file. If you send me (leif@leif.org) the batch file I'll show you a solution. Leif +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.