Lollipop

Welcome to PcCare.com

Filename Edit Script

 

 

Removes character 0 (Zero) from filenames (*.txt) in the current directory.
 
ex: file001.txt -> file1.txt
 
REM
REM Important! Make sure you back up all files and programs before running this script.
REM
 
for %%i in (*.txt) do call :renameit %%~nxi

goto :EOF

:renameit
set filename=%1
echo Renaming %filename% to %filename:0=%
rename %filename% %filename:0=%
goto :EOF

 

 

 

DISCLAIMER: It is assumed that users are familiar with the operating system they are using and comfortable with making the suggested changes. PcCare.com will not be held responsible if changes you make cause a system failure.

Please review our Terms of Service and Privacy statement before initiating service or using this site. Microsoft® and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. PcCare Site Map. About Us