Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Bach menu help
Name: slapfish Date: March 20, 2007 at 08:21:26 Pacific OS: Win XP SP2 CPU/Ram: CORE 2 T7200 / 1GB Product: ACER
Comment:
Hello,
I want to create a menu with 4 choices. I found on previous post the way to do so, but I want to exit the batch file if 5seconds passed without pressing a key. Is it possible?
Name: tonysathre Date: March 20, 2007 at 09:59:28 Pacific
Reply:
There is no way to have a menu and a timeout. You can however have a timeout using ping, but it will not work with a menu. The following code will add a menu to your script with 4 options. Be sure to add your code under each label.
::==menu.bat @echo off for %%i in (1 2 3 4) do echo Choice %%i echo Enter Choice: set /p choice= for %%a in (1 2 3 4) do ( if "%choice%"=="%%a" goto choice%%a )
:choice1 ::your code goes here
:choice2 ::your code goes here
:choice3 ::your code goes here
:choice4 ::your code goes here
"Computer security." — Oxymoron
0
Response Number 2
Name: Mechanix2Go Date: March 21, 2007 at 02:22:51 Pacific
Summary: Hii I am using VB to develop a program in my own language i.e "gujrati". I am able to change the captions and even the database too. But I dont know how the change the font in menu bar. Can somebody h...
Summary: hi, when a user logon successfully ,In the Start->menu above the "Shutdown" ,"Log off xyz..." will appear.(xyz is the user who logged on).If user has not logged on then "Log off..." will be displayed....
Summary: Hi folks if anyone can help me with this it would be appreciated as its been a while since i have programmed Below are two sets of code. The first draws a simplegui with a textarea. The second is a p...