How to remove spaces from file names (in bulk)

前端 未结 6 2081
无人及你
无人及你 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:38

    @echo off
    setlocal enableextensions enabledelayedexpansion
    
    for %%f in (*.*) do (
    set ARG=%%~nxf
    rename "%%f" !ARG: =!
    )
    

提交回复
热议问题