![]() |
|
|
|
Go Speedracer, go!
Join Date: Aug 2002
Location: Indianapolis
Posts: 1,951
|
Windows XP file re-naming question
I have an odd question, and I don't know where else to ask since I don't participate in any other discussion forums.
I have around 4,500 files (*.MP3) that I want to remove the first word of each file name. For example the files are all named like this: "SLOW - Ray Charles...Mp3". I want to remove the "SLOW - " portion of each file name. Does anyone know of a quick way to do it all at once? I tried to write a batch file that would remove the first word of a file name only, but I can't get it to work. I started manually removing each word, but ~5 seconds per file x 4,500 files = about 6.75 hours! Any advice is appreciated.
__________________
1981 SC ROW Coupe |
||
![]() |
|
Registered
|
Go to Download.com...there are lots of free renaming programs to perform this type of function.
__________________
madmmac AKA Mitch 1984 Factory Turbo Look 2006 4Runner 1998 TRD Supercharged 4Runner (Sleeper) |
||
![]() |
|
Registered
Join Date: Feb 2000
Location: Dallas, TX
Posts: 4,612
|
__________________
Neil '73 911S targa |
||
![]() |
|
Registered
|
I'd search for a utility to help along. Hopefully a free trial or freeware. Pehaps along the linews of this http://www.divlocsoft.com/
__________________
Warren & Ron, may you rest in Peace. |
||
![]() |
|
Go Speedracer, go!
Join Date: Aug 2002
Location: Indianapolis
Posts: 1,951
|
Perfect, thanks! I found one on download.com that works perfectly.
__________________
1981 SC ROW Coupe |
||
![]() |
|
Registered
|
Windoze guys don't have Perl?
__________________
1983 944 - Sable Brown Metallic / Saratoga / LSD : IceShark Light Kit |
||
![]() |
|
![]() |
Registered
Join Date: Feb 2004
Location: Decatur/Madison, Alabama
Posts: 1,192
|
I make a batch file using the editor in Visual Studio.
1. Get a listing of the files by doing a dir/b >out.txt command on a command line in that directory. 2. Open the out.txt file in Visual studio. 3. Use the macro record capability to turn each filename into the line: ren filename filename 3.a. Ctrl-Shift R starts macro recording of all keystrokes 3.b. click on the stop symbol to stop recording macro 3.c. Ctrl-Shift P plays back macro of keystrokes 4. Hold the alt key while selecting a text window will allow you to select columns of text to delete in the second filename or you can aause the macro capability to search and replace text in the filenames. 5. Save edited renaming file as a .bat and execute by double-clicking. You may be able to do something similar in Microsoft Word but will have to save it as a .bat in text format. Perl would work also but I'm guessing if you knew how to use it you wouldn't be asking the question. Just my 0.02
__________________
Rob Channell One Way Motorsports 1979 911SC mostly stock ![]() 1972 911T Targa now with a good 2.7 ![]() 1990 Miata (cheap 'n easy) 1993 C1500 Silverado (parts getter) |
||
![]() |
|