I need to recursively search directories, and when a file of a specific name is found then rename it. The key is that I need to also be able to rename it back later.
for /r %%x in (*.aspx) do move %%x %%x.txt
The above works going forwards, but I cannot work out syntax to rename it back after.
My next thought was to instead of add an extension, maybe rename the extension, but I cannot work out how.
Anyone have any thoughts. I have searched by dos was never a great friend of mine.
I'd be happy if this where vbs if that's easier.