Using a variable in file name when copying
Posted: 07 Oct 2010 08:55
Hi All,
I have a simple batch file which uses CURL to FTP a file. The file name has a dynamic date like:
LGWcapture-"yyyymmdd"-"hhnnss".txt
The "yyyymmdd"-"hhnnss" changes each time the file is updated.
My batch file is:
curl -T c:\ComCapV4\logs\LGWcapture-"yyyymmdd"-"hhnnss".txt ftp://mydomain.com/httpdocs/xml/ --user name:password
How would I include the date part of the file in my script.
Many thanks in advance.
Dereck
I have a simple batch file which uses CURL to FTP a file. The file name has a dynamic date like:
LGWcapture-"yyyymmdd"-"hhnnss".txt
The "yyyymmdd"-"hhnnss" changes each time the file is updated.
My batch file is:
curl -T c:\ComCapV4\logs\LGWcapture-"yyyymmdd"-"hhnnss".txt ftp://mydomain.com/httpdocs/xml/ --user name:password
How would I include the date part of the file in my script.
Many thanks in advance.
Dereck