PDA

View Full Version : Rename Theme Files en-mass.



ArcadeAddict77
01-26-2011, 01:23 AM
Hi all,

I have just created this vbscript which renames all of my theme files with the correct rom file names without repeated keystorkes.

I know there are other solutions available, but I really wanted something which would rename the bulk of the files, and highlight the few it cannot process. I have tested this with the HS themes I have downloaded so (212) and it runs well, creating seperate log files for any duplicate or exceptions it comes across.

Just about every line in the script is commented so you guys can check what it does. The script runs in a report mode to begin with so you can check what it will do to your files ahead of time. Then you can change it to run in normal mode and rename the files when you are ready.

REMEMBER - Backup your files ahead of time!!! This cannot be stressed enough, just in case.

Just remove the .txt extension off of the end of the attachment to run it.

Edit: I have just uploaded RenamedFiles.txt which gives the output from the script in a semi-colon delimited file which can be opened in Excel for easy viewing.

Any feedback is welcome.

Thanks,

jprknight.

ArcadeAddict77
01-28-2011, 01:37 AM
It occured to me if anyone is going to use this apart from me it will probably need a GUI.

Here goes:

The script gui running in reportmode to just show what actions will take place:

http://img88.imageshack.us/img88/127/hstrreportmode.png

The script gui running in normal mode to rename the files:

http://img130.imageshack.us/img130/6462/hstrnormalmode.png

My HS Theme files before, just downloaded:

http://img824.imageshack.us/img824/6899/hstrfilesbefore.png

My HS Theme files after, 99% renamed and ready to go:

http://img832.imageshack.us/img832/3712/hstrfilesafter.png

Any questions welcome. update script file attached. Simply rename HS-Theme-Renamer.hta.txt to HS-Theme-Renamer.hta and run.

Thanks,

jprknight

Jumpman Junior
03-23-2011, 02:04 PM
Wow!

Good job, thanks!

ArcadeAddict77
03-23-2011, 04:04 PM
Finally uploaded the HTA program.

It is an updated version, so looks a little different from the screenshots.

Any questions welcome.

AA77

BadBoyBill
03-23-2011, 05:49 PM
Thanks, this looks very helpful.

ArcadeAddict77
03-26-2011, 08:15 AM
Thanks, this looks very helpful.

Thanks BBB! Nice to be noticed.

chillinwater
05-21-2011, 08:05 AM
I havent used this yet but it looks very cool.
If this isnt the right place to ask sorry ahead of time.

Is it possible to add a featrure to extract the "wheel" images from the zips and automatically place them in the wheel folder also ?
Seems like it would be a great way to kill 3 birds...rename,extract wheel and place wheel all in one fell swoop!

B2K24
05-21-2011, 06:10 PM
Isn't this ultimately the same as MAMErenSET v1.50?
I mean as the way it functions?

I'm not saying you copied anything, but I think users could just use MAMErenSET v1.50 and achieve the exact same results. I could be wrong though?

chillinwater
05-21-2011, 08:20 PM
I think "HS ThemeRenamer" is more of a preparation tool for MameRenSet.

I could also be mistaken but MameRenSet renames according to known past romset naming and new romset naming (forward and backward compatible) but doesnt take into account or know how to handle all the Hyperspin theme creator info in a romname like:

Asteroids-asteroid-neonets(051310).zip

I'm pretty sure (not 100%) MameRenSet is based in some way on this file from ProgettoSnaps
http://www.progettosnaps.net/renSET/pS_renameSET.txt

ArcadeAddict77's app strips that theme creator info to the mame format and once thats been done you could use MameRenSet to rename according to your version of Mame.

This does bring up the question of :
What version of Mame does "HS ThemeRenamer" base its naming on?
[edit]
looks like its not base on Mame naming directly but the naming the theme creators gave the theme.

Kofox
06-08-2011, 01:48 AM
Hello.
I have a problem. The button to lock / unblock of the HS-Theme-Renamer.hta does not work and I cannot select the option Normal Mode.

Thank you.

ArcadeAddict77
06-08-2011, 02:12 AM
Hi Guys,

Thanks for the interest in this app. I created this before I had registered as a gold member. Once you do this and get your FTP account you can then download the themes already named the same as the rom names, which is what I was trying to achieve.

So I think the best thing to do, and to support this project, is to get yourself a gold membership and an FTP account. I am now able to download/update my themes in a matter of seconds.

I will leave this app available, but due to the complexity of HTA / vbscript apps I won't be able to spend any time looking at the application. All I can say is it worked on my Windows 7 (not SP1) laptop last time I tried it, but this was around the time I originally posted this thread.

Thanks,

AA77.

BiZzAr721
06-08-2011, 07:50 PM
Thanks. A week too late for me :vollkommenauf: It is a very helpfull program even for gold members. For example, alternate mame themes downloaded from the ftp have that naming style plus other user uploads.