DOS BATCH FILE MENU
-
I need a menu that will axiomatically close after 10 seconds but if you press enter then it lunches other batch file... I did this for now:
@ECHO OFF TITLE Menu :MENU ECHO ---------------------------------------- ECHO Press "ENTER" to enter setup menu... ECHO ---------------------------------------- ECHO . ECHO Type Q to Quit immediately ECHO . set INPUT= Set /P INPUT=">" If "%input%"=="" goto runother If /I "%input%"=="Q" goto QUIT :runother CLS batchmenu2.bat
All of this works but i need a delay that after 10 seconds this automatically closes... Anny one can help? :->FeRtoll Software.net ------------ E-Mail me WebPage
-
I need a menu that will axiomatically close after 10 seconds but if you press enter then it lunches other batch file... I did this for now:
@ECHO OFF TITLE Menu :MENU ECHO ---------------------------------------- ECHO Press "ENTER" to enter setup menu... ECHO ---------------------------------------- ECHO . ECHO Type Q to Quit immediately ECHO . set INPUT= Set /P INPUT=">" If "%input%"=="" goto runother If /I "%input%"=="Q" goto QUIT :runother CLS batchmenu2.bat
All of this works but i need a delay that after 10 seconds this automatically closes... Anny one can help? :->FeRtoll Software.net ------------ E-Mail me WebPage
I dont think you will be able to do that directly from cmd commands inside the bat file.. But you could make it run some VB scripts which then sleep for 10 secs and then closes the cmd.exe process or alike (! if there are never any others..) It was a long time ago i worked with *.vbs files from within cmd but i do remember you can do stuff like sleep, emulate keys etc so it should be possible one way or another :)
//Johannes
-
I need a menu that will axiomatically close after 10 seconds but if you press enter then it lunches other batch file... I did this for now:
@ECHO OFF TITLE Menu :MENU ECHO ---------------------------------------- ECHO Press "ENTER" to enter setup menu... ECHO ---------------------------------------- ECHO . ECHO Type Q to Quit immediately ECHO . set INPUT= Set /P INPUT=">" If "%input%"=="" goto runother If /I "%input%"=="Q" goto QUIT :runother CLS batchmenu2.bat
All of this works but i need a delay that after 10 seconds this automatically closes... Anny one can help? :->FeRtoll Software.net ------------ E-Mail me WebPage
Would any of the batch Timers help you? http://www.jpsoft.com/help/index.htm?batchcmds.htm[^]
Vasudevan Deepak Kumar Personal Homepage Tech Gossips