how to move a file to new location with time stamp
Posted: 09 May 2014 4:22
Suppose my file in X location is ->ABCD.txt
Move to Y location with appending timestamp.
like
ABCD.20140509094707.txt
What i did
But the out put I am getting in job after difined a variable is
ABCD.20140509094707txt
Where variable defined is
%%TIMEST=%%$DATE.%%TIME
And command is
move D:\ABCD.txt D:\DD\ABCD.%%TIMEST.txt
But the output is ABCD.20140509094707txt
so file type is not recognized as .txt as "." missing before "txt"
Thanks for your valuable inputs here
I am working on Control-M V8
Move to Y location with appending timestamp.
like
ABCD.20140509094707.txt
What i did
But the out put I am getting in job after difined a variable is
ABCD.20140509094707txt
Where variable defined is
%%TIMEST=%%$DATE.%%TIME
And command is
move D:\ABCD.txt D:\DD\ABCD.%%TIMEST.txt
But the output is ABCD.20140509094707txt
so file type is not recognized as .txt as "." missing before "txt"
Thanks for your valuable inputs here
I am working on Control-M V8