KingPizza Posted April 17, 2021 Share Posted April 17, 2021 I have a full set of Nintendo 64 ROMs that I want to compress in to individual ZIP files to save space. I can only figure out how to add them all at once to a ZIP file. How do I compress each individually without doing it 1 by 1, which would take hours. Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted April 17, 2021 Share Posted April 17, 2021 You could create a batch file and run it inside the folder where your roms are located. If you have 7zip installed, it would look something like this: for %%i in (*.*) do "C:\Program Files\7-Zip\7z.exe" a "%%~ni.zip" "%%i" 1 Quote Link to comment Share on other sites More sharing options...
KingPizza Posted April 17, 2021 Author Share Posted April 17, 2021 (edited) This is exactly what I needed, thanks! The only thing I changed was telling the batch file to delete the source ROM after compression, to save space. for %%i in (*.*) do "C:\Program Files\7-Zip\7z.exe" a "%%~ni.zip" "%%i" -sdel Edited April 17, 2021 by KingPizza 1 Quote Link to comment Share on other sites More sharing options...
DeadVoivod Posted April 17, 2021 Share Posted April 17, 2021 (edited) Select files, right click, open with WinRAR, settings --> files, tick the box 'put each file in a separate archive', DONE. Options --> delete files after archiving Why mess with command lines? Edited April 17, 2021 by DeadVoivod Quote Link to comment Share on other sites More sharing options...
KingPizza Posted April 17, 2021 Author Share Posted April 17, 2021 4 hours ago, DeadVoivod said: Select files, right click, open with WinRAR, settings --> files, tick the box 'put each file in a separate archive', DONE. Options --> delete files after archiving Why mess with command lines? I googled this question for literal hours last night and this was never mentioned. I just tested it and yeah, WinRAR has this feature built in. That saves me a lot of time, thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.