How to remove spaces from file names (in bulk)

前端 未结 6 2143
无人及你
无人及你 2020-12-04 19:51

How to remove spaces (not replace with underscores) from several thousand files in bulk in Windows? Can I do this from the DOS command?

Currently:

fi         


        
6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-04 20:23

    In Windows:

    1. Open a Command Prompt.
    2. Go to the folder with the cd command (eg.: cd "paht of your folder").
    3. Open a powershell by typing: powershell
    4. Then input this: get-childitem *.mp3 | foreach {rename-item $_ $_.name.replace(" ","")}

提交回复
热议问题