Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch & FTP combo help needed with date

Status
Not open for further replies.

Funkymatt

Programmer
Aug 27, 2002
101
US
All...

Contents of go.bat
ftp -v -n -i -s:go.scr computerName

Contents of go.scr
user userId password
ascii
cd funds/test
put SF_AD_03200301.DEL
bye

Each day there is a file generated that I need to FTP to the same location. The file name changes based on the date. The file name for the 20th of March would be in the format SF_AD_MMDDYYnn.DEL (SF_AD_03200301.DEL). There is also an identical file with a .EXP extension (SF_AD_03200301.EXP).

Is there anyway to store the system date to put only these two files even if there are several .DEL and .EXP files in the same directory?

Curious,
Matt
 
Never mind....figured out a work around...
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top