Trying to copy a file with a batch im writing.
Everything worked up until now, where i put
xcopy tempFile.txt "%date%-%time%.txt"
It specifies it as a file, but i always get
Invalid path
0 File(s) copied
Why wont windows let me assign a variable from the console (ie %time% and %date%) to a filename?
If i change the output to
xcopy tempFile.txt "SomeBlandFileName.txt"
it works fine, but thats not what i want.
Any help /g/?
Pic not related
>>55285170
Btw, that pokemon is Marge.
You were wrong
Anyone?
%date%-%time% looks like it would return a number, not a string.
>>55285222
Nice digits.