Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. DOS BATCH FILE MENU

DOS BATCH FILE MENU

Scheduled Pinned Locked Moved System Admin
csharpcomhelpquestionworkspace
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FeRtoll
    wrote on last edited by
    #1

    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

    J V 2 Replies Last reply
    0
    • F FeRtoll

      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

      J Offline
      J Offline
      Johpoke
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • F FeRtoll

        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

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        Would any of the batch Timers help you? http://www.jpsoft.com/help/index.htm?batchcmds.htm[^]

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups