Open ZacharyLeahan opened 8 months ago
Here's a working python script. https://github.com/ZacharyLeahan/Repackinator_Py/blob/feature_pythonbatchextract/Python/BatchCCItoHDDReady.py
If you are on windows you can make a .bat file, put the bat next to Repackinator.exe and drag as many iso onto the bat as you want, it will process them 1 at a time in the same folder as the ISO
@echo off
setlocal
rem Get the current directory (where the batch file is located)
set "script_dir=%~dp0"
rem Set the path to Repackinator in the same directory as the batch file
set "repackinator_path=%script_dir%Repackinator.exe"
rem Check if the user has dragged and dropped files
if "%~1"=="" (
echo Drag and drop one or more ISO files onto this batch file
echo to extract them to HDD Ready folders.
pause
exit /b
)
rem Loop through all the dragged and dropped files
:loop
rem Extract the input file (ISO)
set "iso_file=%~1"
rem Check if the dragged file has an ISO extension
if /i not "%~x1"==".iso" (
echo "%iso_file%" is not a valid ISO file.
) else (
echo Processing "%iso_file%"...
"%repackinator_path%" -a=extract -i="%iso_file%"
)
shift
if not "%~1"=="" goto loop
pause
The extract option doesn't offer any subdirectory traversal or batch mode. Could this be in the CLI or a python script wrapper?