- reg add "HKCR\SystemFileAssociations\.pdf\shell\AddDatePrefix" /ve /t REG_SZ /d "Add Date Prefix" /f
- reg add "HKCR\SystemFileAssociations\.pdf\shell\AddDatePrefix\command" /ve /t REG_SZ /d "cmd /v:on /c for /f \"delims=\" %%%%i in (\"%%1\")do (set \"a=%%%%~ni\"&(if \"!a:从=!\" neq \"!a!\" (set \"newname=!a:从=!\")else set \"newname=好!a!\")&ren \"%%%%i\" \"!newname!%%%%~xi\")" /f
复制代码
|