TomSalvato
Technical User
Hello experts - I'm hoping this is a simple request, I haven't had to use too much DOS in recent years so I'm probably forgetting something common.
I need to do a basic file copy from one location to another, but I need to target file to get a date extension so that it doesn't overwrite files in the target folder.
copy CurrentPath\test.txt NewPath\test.txt
I need the file to be test_01302022.txt (though the format of the date isn't that important).
I know there's a data function, but I can't seem to get the system to accept the syntax.
This is what I was told to try ...
copy CurrentPath\test.txt NewPath\test-%DATE%.txt
This just gives me a syntax error.
Can anyone help me out with what I'm doing wrong?
Thanx as always,
-TS
I need to do a basic file copy from one location to another, but I need to target file to get a date extension so that it doesn't overwrite files in the target folder.
copy CurrentPath\test.txt NewPath\test.txt
I need the file to be test_01302022.txt (though the format of the date isn't that important).
I know there's a data function, but I can't seem to get the system to accept the syntax.
This is what I was told to try ...
copy CurrentPath\test.txt NewPath\test-%DATE%.txt
This just gives me a syntax error.
Can anyone help me out with what I'm doing wrong?
Thanx as always,
-TS