- Joined
- Oct 12, 2006
- Messages
- 384
- Trophies
- 0
- Age
- 41
- Location
- The Patch Walks!
- Website
- www.MODaWii.com
- XP
- 304
- Country
I've got a bunch of NDS and GBA roms that I need to compress to .7z files. Is there a rom zipper (or anything for that matter) that I can use to create multiple 7z archives from a directory of files? I had a cmd script that I wrote and it was working fine until a recent update from microsoft (running Vista Ultimate 64) and now it's not working at all, it just closes with no error messages and nothing done:
CODE@echo off
setlocal
REM Location of 7z.exe
set exe=c:\program files\7-zip\7z.exe
REM Location of root folder
set root=.\
for /F "tokens=* usebackq" %%G in (`dir "%root%" /A /B`) do (
"%exe%" a -t7z "%root%\%%G.7z" "%root%\%%G" -mx0 > NUL
if exist "%root%\%%G.7z" echo rd /s /q "%root%\%%G"
)
endlocal
CODE@echo off
setlocal
REM Location of 7z.exe
set exe=c:\program files\7-zip\7z.exe
REM Location of root folder
set root=.\
for /F "tokens=* usebackq" %%G in (`dir "%root%" /A /B`) do (
"%exe%" a -t7z "%root%\%%G.7z" "%root%\%%G" -mx0 > NUL
if exist "%root%\%%G.7z" echo rd /s /q "%root%\%%G"
)
endlocal