简体   繁体   中英

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

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"

如果名称中有空格,则必须使用引号。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM