|
Answer» I allways look through help files first but i dont even know where to start on this... what i would like to know is how to execute one of two commands once a BATCH file is ececuted...
example
press any key to run command or
press another key to run other command
thanks for any helprem Choice between 2 commands. %comspec% /c choice /c:ab For command1 hit a for commmand2 hit b if errorlevel 2 goto :COMMAND1 if errorlevel 1 goto :COMMAND2
:COMMAND1
echo first command
:COMMAND2
echo second command
hope it helps uli
ok for some reason this DIDNT work for me just kept running wild i couldnt hardly stop it maybe i did somethig wrong SRY im sllooow at this fat_basterd21
What operating SYSTEM do you use? In WinXP you can build a simple menu like described here: http://www.dostips.com/DtTipsMenu.php
Hope this helps. Quote rem Choice between 2 commands. %comspec% /c choice /c:ab For command1 hit a for commmand2 hit b if errorlevel 2 goto :COMMAND1 if errorlevel 1 goto :COMMAND2
if i.m not mistaken..
goto COMMAND1 goto COMMAND2
dont have to put : over thereAnybody can help me...?
how to copy the folder from the CD into desktop after run the batch file..?how to do it...?QuoteQuoterem Choice between 2 commands. %comspec% /c choice /c:ab For command1 hit a for commmand2 hit b if errorlevel 2 goto :COMMAND1 if errorlevel 1 goto :COMMAND2
if i.m not mistaken..
goto COMMAND1 goto COMMAND2
dont have to put : over there
You are right. Sorry for the mistake. Thanx Everyone for you help i will look over the sites when i get a chance. I think this batch menu will be good enough...
|