[英]Batch program to rename file which has spaces in file name
I am trying to rename a file with the name AQT and Toad Users.xlsx
using the following command 我正在尝试使用以下命令重命名名为
AQT and Toad Users.xlsx
的文件
rename H:\AQT^ and^ Toad^ Users.xlsx AQT.xlsx
It's giving a syntax error, I've used ^
to escape space. 它给出了语法错误,我使用
^
来转义空间。
Can anyone suggest what's wrong? 谁能建议出什么问题了?
ren "h:\AQT and Toad Users.xlsx" "whateveryournewnameis"
如果名称中有空格,则必须使用引号。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.