Posted: 17 Jan 2012 16:35 | ||
Registered User Currently Offline |
Posts: 1 Join Date: Oct 2010 |
|
I'm trying to script a file download which will pull a file whose name contains a date component in the format of yyyymmdd. How do I pass the date variable from the command line so that it is substituted in the filename value? |
Posted: 20 Apr 2012 12:54 | ||
Moderator Currently Offline |
Posts: 367 Join Date: Nov 2008 |
|
You can pass the date values as environment variables - the -set option can be used in the command line to set environment variables that are passed to the script during execution. The other option is to use the gettimestamp or formattimestamp commands to generate the current date variable in the required format.
--------------------------------- FTP Server and FTP Automation solutions simplified! |