When trying to rename a file in a command prompt, I am getting the error:
The syntax of the command is incorrect.
Here's my command:
rename "%userprofile%\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs" "%userprofile%\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs.old"
答案 0 :(得分:2)
rename
不支持目标路径(只是新文件名):
rename "%userprofile%\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs" "trusted.certs.old"