G
Guest
I have written a batch program which FTPs a file to a remote location. I have
specified the -s parameter in the command syntax. The command file contains
the FTP commands including the file to be transferred.
However the file name changes each day. The batch program is run specifying
input parameters as some encryption is done on the source file. %1 being the
source file name and %2 being the filename after encryption.
As a result of this I need to use %2 in the FTP command file. I have
attempted this and it does not work. Is there anyway I can get the filename
into the command file? Or is there a better way of doing this?
specified the -s parameter in the command syntax. The command file contains
the FTP commands including the file to be transferred.
However the file name changes each day. The batch program is run specifying
input parameters as some encryption is done on the source file. %1 being the
source file name and %2 being the filename after encryption.
As a result of this I need to use %2 in the FTP command file. I have
attempted this and it does not work. Is there anyway I can get the filename
into the command file? Or is there a better way of doing this?