Skip to content

Instantly share code, notes, and snippets.

@HBelusca
Last active January 19, 2022 23:35
Show Gist options
  • Save HBelusca/4909ca2ba1ceaf55c5732fab4ecf40f3 to your computer and use it in GitHub Desktop.
Save HBelusca/4909ca2ba1ceaf55c5732fab4ecf40f3 to your computer and use it in GitHub Desktop.
MS Windows 2003 ISO Remastering Script
@echo off
:: title MS Windows 2003 ISO Remastering Script
cls
echo *******************************************************************************
echo * *
echo * MS Windows 2003 ISO Remastering Script *
echo * *
echo *******************************************************************************
echo.
set /p TOOLS_PATH="Please enter the path where CDIMAGE.EXE can be found: "
set /p INPUT_DIR="Please enter the path of the directory tree to be copied into the ISO: "
set /p OUTPUT_ISO="Please enter the path where the ISO should be created: "
echo.
"%TOOLS_PATH%\cdimage.exe" -l"CRMSFPP_FR" -h -j1 -b"%INPUT_DIR%\etfsboot.com" -p0 -e -x -ocs "%INPUT_DIR%" "%OUTPUT_ISO%"
echo.
if errorlevel 1 (
echo An error %ERRORLEVEL% happened while trying to create the ISO file "%OUTPUT_ISO%".
goto :EOC
) else (
echo The ISO file "%OUTPUT_ISO%" has been successfully created.
)
:EOC
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment