Author Topic: Help with Batch: Remove First Word/Number from Filenames  (Read 1598 times)

I have been searching for hours and can't find a batch code to remove whatever is the first word of a set of batch files. I've found removing a specific amount of characters, removing spaces, and changing words. But nothing about a dynamic first word change.

I extracted a extremely large amount of audio files from a game, and the program I had to use to extract them numbered EVERY file. There's at least 1000 files. Some folders of these go into three digits. As such, I can't set it to remove a specific amount of characters. I can't set it to remove a specific number. I just want the batch equivalent of restWords();. Not even Truce could help me. Does anyone have batch code to do this?

And no, I don't want to install yet another crappy program just to do this. Most of them do it in stupid ways, anyway.
« Last Edit: September 15, 2010, 05:24:34 PM by MegaScientifical »


Not even Truce could help me.

You make it sound like I'm supposed to be some expert at batch files.

You make it sound like I'm supposed to be some expert at batch files.
Aren't you though?

What game?

Minerva's Den DLC for BioShock 2. Since this is the Xbox 360 version, I needed to do some special conversions of the xma Xbox Audio Filetypes.

Warning - while you were typing a new reply has been posted. You may wish to review your post.

You make it sound like I'm supposed to be some expert at batch files.

You don't have to ignore me when you don't know a specific kind. I could give you an example of the other types and you might be able to figure out a way... And if your busy, you can tell me and I'll be quiet.

Also, does anyone know how to use umodel? Apparently, it doesn't work on this version.

Why do you need to remove the filenames?

Why do you need to remove the filenames?

No no, the extracting program numbered each file it extracted for some reason.

So instead of:
VO_Bacon.wav

It's:
23 VO_Bacon.wav

The numbers are annoying as hell when they hit the 3 digits and stuff.

It seems that, since I'm using a Xbox 360 rip of the DLC, my extractor has major trouble... extracting. And the nomesh setting isn't working on it. Seems models and textures are off limits for me until it officially comes out on PC.

The problem happens with other Xbox versions of BioShock: http://www.gildor.org/smf/index.php?topic=483.0 . And, although I am also only after the textures, it will not even give me that much.

So, anyone think they can help? Or is the Blockland community really this unbalanced in the smart field?

So, anyone think they can help? Or is the Blockland community really this unbalanced in the smart field?

Calling other people unintelligent for not knowing the solution to a problem that you can't solve either is quite hypocritical, don't you think?

Calling other people unintelligent for not knowing the solution to a problem that you can't solve either is quite hypocritical, don't you think?

I'm just calling out the known ones is all. You don't need to take it like that. I'm sowwy. :panda:

Batch files are antiquated technology from the DOS era. It's good for backwards compatibility and they are easy to learn.

You should either just straight up right a custom program to do it or do it in powershell. I'd recommend powershell, it's a great way to make many repetitive system changes.

That being said, I can't help you write a script, I only played with it briefly last spring. If you read the manual and some tutorials you should be able to figure it out.

Batch files are antiquated technology from the DOS era. It's good for backwards compatibility and they are easy to learn.

You should either just straight up right a custom program to do it or do it in powershell. I'd recommend powershell, it's a great way to make many repetitive system changes.

That being said, I can't help you write a script, I only played with it briefly last spring. If you read the manual and some tutorials you should be able to figure it out.

Well, I was hoping it wouldn't be too complex to use a batch for this instead of installing some program or making something.

Edit: And I had the idea to use Batch because the extraction process required it, anyway.
« Last Edit: September 17, 2010, 01:07:18 PM by MegaScientifical »

But isn't there a way to do this... simpler than writing a program or installing one? It seems so simple... I could do something similar in Blockland in 2 seconds... thought you could make a different script to do it just about as easily...