Skip to content

Instantly share code, notes, and snippets.

@agross
Created November 13, 2009 19:07
Show Gist options
  • Save agross/234075 to your computer and use it in GitHub Desktop.
Save agross/234075 to your computer and use it in GitHub Desktop.
cd /d %1
@if %errorlevel% NEQ 0 exit /b %errorlevel%
@goto %2
:prepare
copy /y "Web\App_Offline.htm.deploy" "Web\App_Offline.htm"
@if %errorlevel% NEQ 0 exit /b %errorlevel%
@goto exit
:upgrade
call "SQL\update-database.cmd"
@if %errorlevel% NEQ 0 exit /b %errorlevel%
del /f "Web\App_Offline.htm"
@if %errorlevel% NEQ 0 exit /b %errorlevel%
@goto exit
:exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment