mustaine737
ISP
Hi,
I need to connect to a ftp server everyday, and get files that have the day's date in their filename:
for eg. xyz-20070716.xml
I have a UNIX script that does it easily as:
date=`date +%m-%d-%Y`
/usr/bin/ncftpget ftp://${user[$i]}:${pass[$i]}@${ftpserver}/*.${date}*
Does anyone know how to translate this into a Windows batch script? I know how to build the basic windows script for this, mget etc. but how do I fit the 'date' bit in?
I can't use Perl or Cygwin, etc.
Any pointers will be appreciated!
Thanks.
I need to connect to a ftp server everyday, and get files that have the day's date in their filename:
for eg. xyz-20070716.xml
I have a UNIX script that does it easily as:
date=`date +%m-%d-%Y`
/usr/bin/ncftpget ftp://${user[$i]}:${pass[$i]}@${ftpserver}/*.${date}*
Does anyone know how to translate this into a Windows batch script? I know how to build the basic windows script for this, mget etc. but how do I fit the 'date' bit in?
I can't use Perl or Cygwin, etc.
Any pointers will be appreciated!
Thanks.