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. General Programming
  3. Managed C++/CLI
  4. Opening a new command line instance

Opening a new command line instance

Scheduled Pinned Locked Moved Managed C++/CLI
c++helpquestion
4 Posts 4 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi everyone, Is there any way I can start a *new dos prompt instance from dos? So basically I have a dos window open but I want to be able to then have 2 windows open so create another instance. Any way that can be done in C++? I tried to research the cmd.exe command but it doesn't start a whole new window. Anyone can help on this? Armond

    - Armond

    C R W 3 Replies Last reply
    0
    • L Lost User

      Hi everyone, Is there any way I can start a *new dos prompt instance from dos? So basically I have a dos window open but I want to be able to then have 2 windows open so create another instance. Any way that can be done in C++? I tried to research the cmd.exe command but it doesn't start a whole new window. Anyone can help on this? Armond

      - Armond

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Sounds like you're asking a C++ question, which belongs in the Visual C++ forum. If you want to use .NET, this is the place to ask.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • L Lost User

        Hi everyone, Is there any way I can start a *new dos prompt instance from dos? So basically I have a dos window open but I want to be able to then have 2 windows open so create another instance. Any way that can be done in C++? I tried to research the cmd.exe command but it doesn't start a whole new window. Anyone can help on this? Armond

        - Armond

        R Offline
        R Offline
        Ralf Lohmueller
        wrote on last edited by
        #3

        Hi Armond,

        Armond Sarkisian wrote:

        I tried to research the cmd.exe command but it doesn't start a whole new window. Anyone can help on this?

        does 'start cmd' the trick for you? (type 'help start' to see the options of the start command) greetings, ralf.

        1 Reply Last reply
        0
        • L Lost User

          Hi everyone, Is there any way I can start a *new dos prompt instance from dos? So basically I have a dos window open but I want to be able to then have 2 windows open so create another instance. Any way that can be done in C++? I tried to research the cmd.exe command but it doesn't start a whole new window. Anyone can help on this? Armond

          - Armond

          W Offline
          W Offline
          wly1028
          wrote on last edited by
          #4

          call dos commmand. "start" ShellExecute(NULL,NULL,"cmd /c start",....)

          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