windows batch file rename

后端 未结 6 995
别跟我提以往
别跟我提以往 2020-12-09 16:54

I have some file such as AAA_a001.jpg, BBB_a002.jpg, CCC_a003.jpg in Windows 7 and I\'m trying to use batch to rename these file to

6条回答
  •  隐瞒了意图╮
    2020-12-09 17:20

    as Itsproinc said, the REN command works!

    but if your file path/name has spaces, use quotes " "

    example:

    ren C:\Users\&username%\Desktop\my file.txt not my file.txt
    

    add " "

    ren "C:\Users\&username%\Desktop\my file.txt" "not my file.txt"
    

    hope it helps

提交回复
热议问题