0

I want to make sure my renaming command always puts the hours as two digits. So even if it is 9:30 AM, I want the filename to add 0930 at the end. Altering the code below, how can I 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"
Anthony Geoghegan
  • 10,874
  • 5
  • 46
  • 55
Tony Kale
  • 1
  • 1

0 Answers0