Get a two-digit hour when renaming a file with a time stamp in Windows command-line? -
i want make sure renaming command puts hours 2 digits. if 9:30 am, want filename add 0930 @ end. altering code below, how can accommodate this?
ren c:\progra~1\tsi\edata\advantis\edisave\dillards\846_temp\001_846_tmp.txt "001_846_tmp_%date:~10,4%-%date:~4,2%-%date:~7,2%_%time:~0,2%%time:~3,2%.txt" ren c:\progra~1\tsi\edata\advantis\edisave\dillards\846_print\001_846_prt.txt "001_846_prt_%date:~10,4%-%date:~4,2%-%date:~7,2%_%time:~0,2%%time:~3,2%.txt"
Comments
Post a Comment