我想确保我的重命名命令始终将小时数设为两位数。因此,即使是上午9:30,我希望文件名最后添加0930。改变下面的代码,我该如何适应这个?
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"