Thanx harshadd, but can you show me how to fetch a dynamic file name like "datafile_ddmmyy.csv" from an ftp location like "ftp://location/folder/datafile_ddmmyy.csv" and save it as "datafile.csv" in the location of the bat script?
Date command from DOS returns o/p like this
C:\>date
The current date is: 31/03/2008
Enter the new date: (dd-mm-yy)
here Year is in YYYY format.
You required in YY format.. its posible but not easy task to get it converted into YY.
Please feedle with FOR command and try to get only 2 digit year as output
FOR /f "usebackq delims=/ tokens=3" %x IN (`date`) do echo %x
Also getting Date is too NOT simple as above commands can give you year(YYYY)
and Month (MM) by changing tokens=2
But tokens=1 do not give date in (DD) form
wait... let me try........