removing first chars from filename

April 15, 2009 at 13:06:01
Specs: Windows XP
I need a batch program to remove the first 11 characters from 500 filenames. like something i could run in the folder that would remove the first 11 characters from all of them. All the files are named runescape-trackname. any help?

See More: removing first chars from filename

Report •


#1
April 15, 2009 at 13:37:30
Warning: Before a massive renaming try the script as the code is not tested.

:: MYREN.BAT  Usage: myren Folder_Name
@echo off & setlocal EnableDelayedExpansion
pushd %*
for %%j in (*) do (
  set FileName=%%j
  set FileName=!FileName:~11!
  ren "%%j" "!FileName!"
)
popd
:: End_Of_Batch


Report •
Related Solutions


Ask Question