Sysax Product Forums / Sysax FTP Automation / General Discussion / passing a date variable to script
Posted:  17 Jan 2012 16:35
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
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!

Copyright © 2021 Codeorigin, LLC - All Rights Reserved.
XML RSS 2.0 XML Atom 1.0