Hi guys, I am trying to use command to rename a file in my C drive.
The file is C:\12345612092013.txt
I am trying to use command to change it to 123456_12092013.txt
I use command rename c:\12345612092013.txt 123456_12092013.txt
I am able to rename the file.
However I am going to schedule it to auto rename the file nightly.
And the 12092013 is a running date.
I'm afraid if the command fails to run, I will rename older files with new date.
Any command to like keep intact the filename, just adding a _ to it?
example 123456XXXXXXXX.txt change to 123456_XXXXXXXX.txt
Thank you for viewing.
The file is C:\12345612092013.txt
I am trying to use command to change it to 123456_12092013.txt
I use command rename c:\12345612092013.txt 123456_12092013.txt
I am able to rename the file.
However I am going to schedule it to auto rename the file nightly.
And the 12092013 is a running date.
I'm afraid if the command fails to run, I will rename older files with new date.
Any command to like keep intact the filename, just adding a _ to it?
example 123456XXXXXXXX.txt change to 123456_XXXXXXXX.txt
Thank you for viewing.