@echo off
setlocal enabledelayedexpansion
for %%F in (*.*) do (
set “filename=%%F”
set “newfilename=!filename:1.=!”
if “!filename!” neq “!newfilename!” (
ren “%%F” “!newfilename!”
)
)
@echo off
setlocal enabledelayedexpansion
for %%F in (*.*) do (
set “filename=%%F”
set “newfilename=!filename:1.=!”
if “!filename!” neq “!newfilename!” (
ren “%%F” “!newfilename!”
)
)