Skip to content

Instantly share code, notes, and snippets.

@valery1707
Created February 28, 2012 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valery1707/1932093 to your computer and use it in GitHub Desktop.
Save valery1707/1932093 to your computer and use it in GitHub Desktop.
Reduce size of ESET sysrescue ISO for use with flash-drives
@echo off
rem Check requirements
if not exist 7z.dll goto require_7z
if not exist 7z.exe goto require_7z
if not exist eset_sysrescue.iso goto require_iso
:create_iso
if exist tmp-iso (rmdir /S /Q tmp-iso)
mkdir tmp-iso
7z x eset_sysrescue.iso -otmp-iso -x![BOOT] -x!sysrescue\base
pushd tmp-iso\sysrescue
call make_iso.bat %~dps0\eset_sysrescue_min.iso
popd
if exist tmp-iso (rmdir /S /Q tmp-iso)
:create_flash
echo Extract flash-files
if exist flash (rmdir /S /Q flash)
mkdir flash
7z x eset_sysrescue.iso -oflash -i!sysrescue
echo Complite
pause
goto :EOF
:require_7z
echo Script require some files (7z.dll, 7z.exe) from 7-Zip distribution.
echo Download it from: http://www.7-zip.org/
pause
goto EOF
:require_iso
echo Script require original ISO from ESET sysrescue distribution.
echo Download it from: http://www.esetnod32.ru/.download/livecd/
pause
goto EOF
:EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment