Helpful Build/Run Scipt (.cmd)

by Mwwhited 20. April 2009 23:04
@ECHO OFF

IF "%1"=="D" GOTO debugIt
IF "%1"=="d" GOTO debugIt
IF "%1"=="debug" GOTO debugIt

IF "%1"=="B" GOTO buildIt
IF "%1"=="b" GOTO buildIt
IF "%1"=="build" GOTO buildIt

REM IF "%1"=="A" GOTO doneWithIt

IF NOT "%1"=="" GOTO :errorCmd

boottest.cmd mypc.vmc
GOTO doneWithIt

:buildIt
echo Build DistroWorld.proj
msb DistroWorld.proj
REM SHIFT /1
REM CALL %0 %1
GOTO doneWithIt

:debugIt
echo Start VM with Debugger Attached
dbg.cmd /pipe & boottest.cmd mypc.vmc
GOTO doneWithIt

:errorCmd
echo Start VM
echo "command not understood '%1'"
GOTO doneWithIt

:doneWithIt
echo Completed

Tags:

Programming

Comments

11/9/2009 3:04:59 PM #

black diamond earrings

Me and my friend were arguing about an issue similar to this! Now I know that I was right. lol! Thanks for the information you post.

black diamond earrings United States

Comments are closed

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

RecentPosts

Badges