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 : launching an app, and waiting it is finished

DOS : launching an app, and waiting it is finished

Scheduled Pinned Locked Moved System Admin
questionhelp
4 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.
  • J Offline
    J Offline
    Jerome Conus
    wrote on last edited by
    #1

    Hi !! In my batch, I need to launch an application, wait for it to be finished and then keep going with my batch. But unfortunately, as soon as my app is launched, the batch keeps going without waiting for the app ! When I try to launch manually from the Dos window the app, I can see that I get the prompt as soon as the app is launched. On the other hand, when I launch other apps, I don't get any prompt before the app is finished ! Why do I get those different behaviours ? How can I make sure the prompt will wait for the app to be finished ? thanks for your help ! Jerome

    T L 2 Replies Last reply
    0
    • J Jerome Conus

      Hi !! In my batch, I need to launch an application, wait for it to be finished and then keep going with my batch. But unfortunately, as soon as my app is launched, the batch keeps going without waiting for the app ! When I try to launch manually from the Dos window the app, I can see that I get the prompt as soon as the app is launched. On the other hand, when I launch other apps, I don't get any prompt before the app is finished ! Why do I get those different behaviours ? How can I make sure the prompt will wait for the app to be finished ? thanks for your help ! Jerome

      T Offline
      T Offline
      Tim Deveaux
      wrote on last edited by
      #2

      Are you using the Call command in your batch?

      J 1 Reply Last reply
      0
      • T Tim Deveaux

        Are you using the Call command in your batch?

        J Offline
        J Offline
        Jerome Conus
        wrote on last edited by
        #3

        I tried with and without the 'Call' command, but it didn't change anything.....

        1 Reply Last reply
        0
        • J Jerome Conus

          Hi !! In my batch, I need to launch an application, wait for it to be finished and then keep going with my batch. But unfortunately, as soon as my app is launched, the batch keeps going without waiting for the app ! When I try to launch manually from the Dos window the app, I can see that I get the prompt as soon as the app is launched. On the other hand, when I launch other apps, I don't get any prompt before the app is finished ! Why do I get those different behaviours ? How can I make sure the prompt will wait for the app to be finished ? thanks for your help ! Jerome

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I think there are two case: 1. You want to control the application that is running by yourself you could use the PAUSE command[^] to terminate your batch process. After you close the application then you can press any key to continue. 2. If you want to run it automatically without user respond, you should create your batch file in a seperate file then schedule it to run by an estimate period. For schedule the batch file to run in a specific time check AT command[^] for more information.


          A thousand mile of journey, begin with the first step. APO-CEDC Save Children Norway-Cambodia Office

          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