Hey guys :)
Does anyone know if it's possible to rename a file in NT DOS using variables? I've tried but it gives an incorrect syntax error.
Here's what I tried:
- ren bob.txt bob%date%.txt
- ren bob.txt bob%date%
- ren bob.txt %date%
- set bob %date%; ren bob.txt %bob%
None worked. I was thinking of redirecting %date% to a txt file or something, but there's no command in dos to read from a file. Horrible!
Any ideas? :confused:
Thanks!! :D