So I am running a program currently and it outputs an html file to a static location/name and i want to keep all of them, a log pretty much.
How would i go about changing the name of that file to something different, and unique, and possibly change the location of that to a log folder via command line. I was thinking of adding a timestamp into the name of the file, but I have no clue how to go about that, which is why I'm here.
EDIT: I'm doing this on Windows Server 2003. So it will be in the cmd.exe shell. I'm running this all through CC.NET so I could easily run a batch file with commands in it. The CC.NET project builds an HTML file with the same name every time in the same location, so it overwrites the old one.
So i want to move the old one and rename it so I don't run into the same overwrite problem with moving them to a different location.
Short and simple: How do I take a file, move it, rename it uniquely(timestamp?), within the windows command shell?