Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to rename a file on cmd prompt to current date

ren somefile.txt somefile_%time:~0,2%%time:~3,2%-%date:~-10,2%%date:~3,2%%date:~-4,4%.txt
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rename #file #cmd #prompt #current #date
ADD COMMENT
Topic
Name
6+2 =