Search the Community
Showing results for tags '7z'.
Found 2 results
Hey everyone, I have assembled some useful Windows Batch Files to help with the automatic zipping for roms and other tasks. To create the .bat file simply create a text document within Windows and name it what you would like and make sure the extension is .bat Then you want to right click and press 'edit' in order to add text to the document. Simply copy and paste one of the following code and save it. By default windows doesnt normally allow you to see extensions of known file types so you may have to do a quick Google Search on how to show file extensions on all files If you would like to change the compression type to either 7z or zip, simply replace the extension where it says either .7z or .zip to the compression type you want. Some of these file can/may be improved, as these arnt perfect, however they may help you like they have helped me. NOTES You must have 7z installed on the computer. I have included the default directory to 7z however double check your directory to make sure its in the same place, otherwise change it to the correct directory All Batch files should be in the same directory you would like the operation, this means the .bat files are portable. So sometimes the Batch file may also be ziped up :| ----- BatchFolder2zip.bat The below code automatically zips the files inside folders with the folders name. This is useful for zipping up Foldered roms but dont want to zip up the folder as well. This is useful for SkumVM if you wanted to convert your folder rom set to ZIP for /d %%X in (*) do "C:\Program Files (x86)\7-Zip\7z.exe" a "%%X.zip" "./%%X/*" Pseudo Code: For content inside every folder for any extension run 7z and add the contents inside folder and name the zip the same as the folder. --------------------- BatchFile27z.bat This automatically zips all files within the same directory of the batch file into a 7z. Useful for making NES or snes roms into 7z, or pretty much any standalone rom FOR %%i IN (*.*) DO "C:\Program Files (x86)\7-Zip\7z.exe" a "%%~ni.7z" "%%i" Pseudo Code: For the name of every file with any extension use 7z.exe to create a zip with the current name minus extension. ------------------- BatchFilesInFolder27z.bat So what this does is it puts all the files inside multiple folders in the current directory into a 7z file outside the folder. HOWEVER it only zips the files within the folder if they have the same name but can have different extentions. For example Folder name is Crash_Bandicoot and inside the folder is Crash Bandicoot (USA).bin and Crash Bandicoot (USA).cue. The batch file will automatically zip both files inside the folder (because they have the same name) and place the zip outside that folder called Crash Bandicoot (USA).7z. Just keep in mind, this will also automatically zip any other file with a different name in its own zip such as track01.bin files. etc FOR /r %%i IN (*) DO "C:\Program Files (x86)\7-Zip\7z.exe" a "%%~ni.7z" "%%i" Pseudo Code: For files inside directory with any extension use 7z to add files to 7z with name INSIDE folder pairing it up with files of the same name ------------------ BatchFile2Folder2Manual.bat For every PDF/anyfile [Replace(*.pdf*) with (*.*) or for text files (*.txt*)] file, it will create a folder of the same name and then rename the file to Manual.pdf. It will then move that file into the folder. This is useful for Manuals downloaded from EmuMovies Download Service as it downlaods the manual as the name of the game and to follow the structure of RocketLaunch, its normally in games name folder. FOR %%i IN (*.pdf*) DO md "%%~ni" & ren "%%i" Manual.pdf & move Manual.pdf "%%~ni" Pseudo Code: For every file name that ends with .pdf, create a folder with the PDF file name without .pdf and rename the pdf file to Manual.pdf then move the file into the folder just created. ------------------ I am aware that there may be other utlities that can do the same thing such as Dons Rom Rename however these batch files may have other use cases and I am only sharing them because I found them useful, and it may help others as well. I would recommend that you test it on a smaller batch to test it out before converting your entire rom library TIP: If you would like to see the progress when it finishes or want to debug it, Add Pause to the end of the code (Including a space and it is case sensitive) If you have any useful batch files or improvements to the ones here, dont hesitate to share them. Cheers
756 downloadsIMPORTANT - READ FIRST My English is not good so expect typos and grammatical mistakes. Warning: When using HA, Do Not set your current ROMs folder as Output folder... this can DELETE ALL ROMS in that folder. Use a New Folder as Output. (Its not just like that, i use HA with my roms folder as output all the time, HA also warn you before delete the files in that folder to create new ones, but you have to be careful. Anyway Better to be sure all people get the message) In the current RocketLauncher version the Launch Menu don't work with the files produced by this app, the RL team is aware of this and will fix the problem. HyperArchiver 0.0.0.17 What is HyperArchiver? Hyperarchiver is an application that takes an Hyperspin XML Database and an UNZIPPED roms folder, compare both (CRC and Filename Compare) and outputs a series of Zip or 7z archives that represents every game in the Database, each one of these archives containing all versions for that given game. Also it generates a RomsMapping.ini file that can be used with RocketLauncher to display the "Launch Menu" and let you select the vesion of the game you want to play. You don't Know what i'm talking about? You MUST READ http://www.rlauncher...le=Rom_Mapping for more info of Rom Mapping, Launch menu and RocketLauncher in general and how to use this tools before continue. You MUST READ the included HyperArchiver readme file, wich contains detailled information on how to use the app. Quick Start I made this program to create a multi-region hyperspin instalation that let me select the English, Spanish (if there is a Spanish version) and sometimes Japanese version of a rom, but it can be used with any languaje / region, include hacks and other rom versions. Extract all the Roms of a full rom set in a temp folder... delete the regions you don't want to be included in the search (Japan, Germany, Etc.) using windows search feature . Create a new folder somewhere to store the Zip/7z Files, and set it as Output Folder in HyperArchiver. Use HyperArchiver to find all matches of every game (How to? read included HyperArchiver readme file). Once the search process as ended you can make some changes to the results using the HyperArchiver Files Editor and then compress all the files in 7zip or Zip formats. Finally open the Rom Mappings folder (inside HA folder) and copy the Rom Mapping.ini file to your RocketLauncher/Settings/[sYSTEM NAME]/Rom Mapping folder to use the ultra cool "Launch Menu". Remember to enable Rom Mapping and Launch menu in RocketLauncherUI or the Launch Menu will not work. (More info in http://www.rlauncher...tle=Rom_Mapping) In short: A picture is worth a thousand words MAME and Other Arcade Systems HyperArchiver works with single file roms, and not with MAME-like romsets, for that purpose I included a “Clone Rom Mapping Maker” based on the script created Bleasby (Thanks) that creates the Rom Mapping.ini for use with Launch Menu based in the parent/clones relationship of the games. This way you can have just the MAME parents in your front end, and the launch menu will allow you to select the clones of that game. Bugs HyperArchiver was made for my own usage, has not ben tested so much and its in a really earlier version, I have little time to work in it so I decide to release it right now. My English it’s not good so expect typos and grammatical mistakes. You can send me notifications of errors as PM in the Hyperspin Forums (User: Knewlife) including: • Operative System • Screenshot • What is supposed to happen • What happen really • What you were doing when the error occurs? • Can you duplicate the error? Do not expect a quick answer. The donwload include a readme file with more information and source code (Autoit3 code) ... please coment what you think Older versions of the app can be found in this post: http://www.hyperspin-fe.com/topic/1931-hyperarchiver-0007