Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

what i would like to have is a batch file so when run it would compress all files/roms to own 7z archive beast on the name of the rom

can anyone help romzipper does not support 7z

thank you all

Posted

Well I don't know about writing a batch file...hehe to me thats going backwards. :)

I'm looking to write a script anyways to run in a primary directory which snags all the contents of a sub folder and archives it into rar\7zip\TorrentZip\Zip...tho if your working with all roms in one folder I could probably do one for that as well...but let me know...hehe other wise I'll just do things as I want. :)

My reason is that I was looking to update a CD image set...and.....DOH!!!!!!!!!!!....just noticed you can set the zip compression level in CLRMAME Pro....I guess the bitch I was about to unleash...is bogus. ;)

Man I just ate a shit load of time for giggles...thats not cool. :(

Okay here is the run down on my foolishness so everyone can point and laugh and hopefully learn from my complete waste of time...

Alright everyone knows...I hope that when your in the Rebuilder section of CLRMAME Pro...you have two primary settings that greatly effect the time it takes to rebuild your rom set...."Compress Files" & "Recompress Files"...man this is rather a serious blond moment....anyways "Recompress Files" makes sure any archives are compressed to your compression settings (*things didn't click here*)..."Compress Files" basically means if you where dealing with flat files or files in sub folders...they would be brought together in a archive...and if they where already in an archive that would simply be moved over....unless "Recompress Files" was selected. Leaving "Compress Files" unchecked would for one disable "Recompress Files" of course...but it also means all files will be stored in subfolders.

Now here is where my blond moment really shines....if your in the Settings section of CLRMAME Pro...there is a button in the lower left hand side that says "Compressor..." strangely enough...clicking it bring up some options for the compressor...the key one here is "Zip Compress Level" which is typically set at a value of 9...which returns fairly good speed to compression results....however setting this to 0 basically causes the compressor to simply make a Store file with a zip extension since there is no compression being done...why is this useful...because one...it takes about as much time as just simply coping the files from one place to another....and the real key here is the fact most files end up being TorrentZipped....so why waste time compressing the files twice...when it can be done only once.

Blonde fucking stupid moment....hehe figured I'd share it with everyone. :)

Now with small files...this route doesn't make a whole lot of diff...but if you are working with CD or DVD size files...you only want to compress shit once.

Anyways yeah I'll write your script...in AutoIt tho.

Posted

cool thankyou for that all my rom are ARE IN folders

eg

D:Roms_n64

all n64 roms are in 1 folder

D:Roms_mame

all mame roms are in one folder

and so on

thank you so much

i spent the last 3 days looking on google for something to do this

most of the zip and 7z programs i tried would only do one file at a time and that was by hand lol

Posted

Okay I think we have a mild misunderstanding...I figured the roms where in some sort of folder.

Okay first off are your roms archived? (zip\rar\ace\7z\tar\...) or are they in binary form?

I ask this because you stated your Mame roms are all in one folder...with Mame...I hope they are in ether archives or in thousands of sub folders...or you have a problem...since there are several hundreds if not thousands of games that have multiple binary files required to make them run correctly.

N64 and the like...typically have only one binary file per game...however when dealing with GoodMerge there can be multiple builds of a given game...so while only one rom is required...several are offered.

So if all binary files are in A single primary folder...I can code around that....if all archives are in a single primary folder, where your looking to convert from one format to another...I can code around that.

If all binary files are in a game per sub folder...I can code around that...same applies to archives.

So please be very explicit about your needs.

Posted

ok sorry

mame roms are ziped

(1 zip = one rom)

all the roms are in a folder based on system name eg

d:roms/roms_n64

d:roms/roms_mame

d:roms/roms_Roms_Sega_Gamegear

most of my roms are just binary (not compressed) or in .zip

n64 roms are just binary (not compressed)

what i would like are .zip to .7z

binary to.7z

so all my roms are in 1 format 7z

hope that a bit clearer

thx again

Posted

Okay here is the first script...its for taking Binary files...that are all in a single folder, then archiving them in 7zip format into a new folder called "_New Archives"...currently this should use whatever default settings you have for 7zip....of course 7zip is required to be installed on the system...and the script assumes that it is installed under "Program Files\7-zip\" if not...you'll need to alter the script to account for this....source is of course included in the attached archive.

To use simply extract the executable into the folder you wish to process...double click it and let it run...once done it will display a message box informing you of such an event...if you really desire more feedback...I could code in a progressbar....which seems generally useless to me...as it'll be done when its done. :)

Enjoy

Posted

thank you so much for your hard work

i tryed it but i can't seen to get it to work

when i run it makes the _New Archives folder but when it done _New Archives folder is empty

i have z7 installed in C:\Program Files\7-Zip

going to try a reboot need to reboot anyway

Posted

Well rebooting shouldn't make a diff to the script...do you have 7z.exe in your 7-Zip folder? as its kind of a requirement...I'm not running this through the GUI.

Hehe maybe I should test for that file rather than just assuming its there. ;)

*Update*

Added Archive to 7zip...should work with any archive supported by 7zip for extraction.

Posted

yep i have 7z.exe in C:\Program Files\7-Zip

i might try this on other pc

Posted

Okay here are all three of my 7-Zip scripts...all test for 7z.exe :)

_Archive to 7zip.exe

_Binary to 7zip.exe

_SubFolders to 7zip.exe

I know you weren't looking for the subfolder one...but tough shit...hehe I coded it up yesterday. ;)

I'll be nuking the prior versions here shortly.

Posted

ok jest tested on other pc they work great

now trying to workout why they are not working on this one :)

thx again

Posted

Well the one you are having issues with....did you use a registry tweak to remove 8.3 file naming? if so...that might be the issue...other wise I'm drawing a blank.

Anyways your welcome and enjoy

Posted

ok got it

this is a 64 bit so it was looking in C:\Program Files (x86) thats funny i have the same files in C:\Program Files microsoft dose it again

Posted

oh...never even thought of that...hehe don't have any 64bit OS installed...so its a screw up on my part for not accounting for that.

Guest
This topic is now closed to further replies.
×
×
  • Create New...