Concatenate Current Date in Batch Script FTP output filename
Posted: 28 Mar 2011 09:42
I have a batch file that I execute each day. It calls a FTP step to transfer some data from our host systems onto a local server for processing. The FTP step is utilizing a GET statement to transfer the data.
In my output file I would like to concatenate the current date to final output file name. This way it will assure that each day that this process runs the output files are name uniquely.
Current FTP GET statement....
get 'PWDOP.DMGJW.PR27DD01(-0)' "\\usgpdsm0nam02\group\OPPROCSN\Reports and Tools\CustomerShippedLines\ShippedLines.txt"
I would like the output filename to be ShippedLines-mmddccyy.txt verses the current ShippedLines.txt
Much appreciated to all the help.
Don
In my output file I would like to concatenate the current date to final output file name. This way it will assure that each day that this process runs the output files are name uniquely.
Current FTP GET statement....
get 'PWDOP.DMGJW.PR27DD01(-0)' "\\usgpdsm0nam02\group\OPPROCSN\Reports and Tools\CustomerShippedLines\ShippedLines.txt"
I would like the output filename to be ShippedLines-mmddccyy.txt verses the current ShippedLines.txt
Much appreciated to all the help.
Don