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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. running an application using command prompt

running an application using command prompt

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 4 Posters 2 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.
  • Z Offline
    Z Offline
    zahid_ash
    wrote on last edited by
    #1

    HI. I am running my application using command prompt. like C:\> D:\App.exe after launching this Application the command prompt come back to prompt again like C:\> does it means that application has been ended . but the appliccation is still running then how can I come to know that application is still running using command prompt thanks Regards.

    G L 2 Replies Last reply
    0
    • Z zahid_ash

      HI. I am running my application using command prompt. like C:\> D:\App.exe after launching this Application the command prompt come back to prompt again like C:\> does it means that application has been ended . but the appliccation is still running then how can I come to know that application is still running using command prompt thanks Regards.

      G Offline
      G Offline
      Ganesh_T
      wrote on last edited by
      #2

      when you type : c:\ D:\App.exe and comes back to c:\ it will happen ...Here you are not changing the drive to access but just specifying the path of your exe. Your exe will start as a new process ....so you have to eplicitly terminate your application Cheers "Peace of mind through Technology"

      Z 1 Reply Last reply
      0
      • G Ganesh_T

        when you type : c:\ D:\App.exe and comes back to c:\ it will happen ...Here you are not changing the drive to access but just specifying the path of your exe. Your exe will start as a new process ....so you have to eplicitly terminate your application Cheers "Peace of mind through Technology"

        Z Offline
        Z Offline
        zahid_ash
        wrote on last edited by
        #3

        OK, Thanks. But I have one more question that when we run Format command or some other command on Comand prompt, then why these comand are not run as new process. they usualy run in same command prompt and will not free the prompt until the command execution ends Regards.

        K 1 Reply Last reply
        0
        • Z zahid_ash

          OK, Thanks. But I have one more question that when we run Format command or some other command on Comand prompt, then why these comand are not run as new process. they usualy run in same command prompt and will not free the prompt until the command execution ends Regards.

          K Offline
          K Offline
          khan
          wrote on last edited by
          #4

          zahid_ash wrote:

          Format command or some other command on Comand prompt

          That is because those are Command-line applications. Back in the days of DOS, all applications were Command-line. this is this.

          1 Reply Last reply
          0
          • Z zahid_ash

            HI. I am running my application using command prompt. like C:\> D:\App.exe after launching this Application the command prompt come back to prompt again like C:\> does it means that application has been ended . but the appliccation is still running then how can I come to know that application is still running using command prompt thanks Regards.

            L Offline
            L Offline
            Laxman Auti
            wrote on last edited by
            #5

            zahid_ash wrote:

            HI. I am running my application using command prompt. like C:\> D:\App.exe after launching this Application the command prompt come back to prompt again like C:\> does it means that application has been ended . but the appliccation is still running then how can I come to know that application is still running using command prompt

            if the application is Command prompt based then it runs fine... but if it is windows based then application chooses the windows platform to run and application's info enters into windows enviornment not into DOS environment even it run from command prompt. if you want to check the application running state then you have to check into running processes by enumarating processes or any other way. Knock out 't' from can't, You can if you think you can :cool:

            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