N
nsajus
Hi,
Is there a way to concatenate date to a string in the .scp script
file?. I
want to get the following string in the .scp file
"\\server2\TestDir\Test_CH\Archive\CH"&Date&".txt"
It should result in a string like
"\\server2\TestDir\Test_CH\Archive\CH12102005.txt"
with the date in mmddyyyy format. Is it possible to set it like this in
a .scp file?
I would like to do this because I want to email the latest file from an
Archive directory to a remote server. And the files in the Archive
folder have the date appended to it.
So basically I would like put statement generated dynamically in the
..scp file everyday with the date like below:
PUT "\\server2\TestDir\Test_CH\Archive\CH12102005.txt" "CH.DAT"
where "\\server2\TestDir\Test_CH\Archive\CH12102005.txt" is on local
machine
and
"CH.DAT" will be name of the file on the remote machine
Any help will be very much appreciated!
Ann
Is there a way to concatenate date to a string in the .scp script
file?. I
want to get the following string in the .scp file
"\\server2\TestDir\Test_CH\Archive\CH"&Date&".txt"
It should result in a string like
"\\server2\TestDir\Test_CH\Archive\CH12102005.txt"
with the date in mmddyyyy format. Is it possible to set it like this in
a .scp file?
I would like to do this because I want to email the latest file from an
Archive directory to a remote server. And the files in the Archive
folder have the date appended to it.
So basically I would like put statement generated dynamically in the
..scp file everyday with the date like below:
PUT "\\server2\TestDir\Test_CH\Archive\CH12102005.txt" "CH.DAT"
where "\\server2\TestDir\Test_CH\Archive\CH12102005.txt" is on local
machine
and
"CH.DAT" will be name of the file on the remote machine
Any help will be very much appreciated!
Ann