Skip to content

Instantly share code, notes, and snippets.

@withmorten
Last active November 1, 2016 02:35
Show Gist options
  • Save withmorten/7d6ba0f5e3811e9c9f957acb5b0bcf9b to your computer and use it in GitHub Desktop.
Save withmorten/7d6ba0f5e3811e9c9f957acb5b0bcf9b to your computer and use it in GitHub Desktop.
custom c&c zero hour launcher
@echo off
set /P c=Do you want Superweapons? [Y/n]
if /I "%c%" NEQ "N" goto :launcher else goto :nosuperweapons
echo Launching Zero Hour ...
echo.
:nosuperweapons
move !NoSuperWeaponsVanilla.gib !NoSuperWeaponsVanilla.big
:launcher
del Install_Final.bmp 2>NUL
mklink /H Install_Final.bmp Install_Final_vanilla.bmp
move Data\scripts\MultiplayerScripts.scb Data\scripts\MultiplayerScripts.bcs
move Data\scripts\Scripts.ini Data\scripts\Scripts.nin
move Data\scripts\SkirmishScripts.scb Data\scripts\SkirmishScripts.bcs
move !HardAIVanilla.gib !HardAIVanilla.big
move !MaxCameraHeightVanilla.gib !MaxCameraHeightVanilla.big
move !0Shwpatch.big !0Shwpatch.gib
move !Shw_Challenge.big !Shw_Challenge.gib
move !Shw_ini.big !Shw_ini.gib
move !Shw_maps.big !Shw_maps.gib
move !Shw_scripts.big !Shw_scripts.gib
move !Shw_wnd.big !Shw_wnd.gib
move !Shw2DArt.big !Shw2DArt.gib
move !ShwAudio.big !ShwAudio.gib
move !ShwTextures.big !ShwTextures.gib
move !ShwVoice.big !ShwVoice.gib
move !ShwW3D.big !ShwW3D.gib
echo.
echo This window will close automatically after you exit the game. If you see any errors, ignore them, they're nothing to worry about.
echo.
generals.exe
echo.
echo Moving files back ...
echo.
move !HardAIVanilla.big !HardAIVanilla.gib
move !MaxCameraHeightVanilla.big !MaxCameraHeightVanilla.gib
move !NoSuperWeaponsVanilla.big !NoSuperWeaponsVanilla.gib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment