Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
removing first chars from filename
Name: Heedle Blambeedle Date: April 15, 2009 at 13:06:01 Pacific OS: Windows XP Subcategory: Batch
Comment:
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?
Name: IVO Date: April 15, 2009 at 13:37:30 Pacific
Reply:
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
Summary: what command can i use to remove the first 15 chars of hundereds of files so i can get them in alphabetical order, files are named CBEP???-?-?? - filename.xxx, the ? are different for every file (numb...
Summary: U only want to use scanf when u expect different data types in a predefined format ie, and int followed by a string. And the scan.. functions always read an entire line (or scan upto the first \n char...
Summary: Hi, I am wondering how I might go about removing all numbers from all the files in a directory (and how I might exclude certain files from this rename which are named in a exclude.txt in the same dire...