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. C#
  4. createprocess. Stop command prompt being shown

createprocess. Stop command prompt being shown

Scheduled Pinned Locked Moved C#
helpquestion
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.
  • Y Offline
    Y Offline
    Ylno
    wrote on last edited by
    #1

    Hello, I have several precompiled binaries(but not the code) and am looking to make a GUI to make the use of these binaries more user friendly. I was going to call the binaries by using createprocess but the problem is when the binaries run the command propmt flashes up and sort of makes the GUI look messy. Is there a way I can call these binaries and request that their window/prompt is not visible? Thanks

    L J 2 Replies Last reply
    0
    • Y Ylno

      Hello, I have several precompiled binaries(but not the code) and am looking to make a GUI to make the use of these binaries more user friendly. I was going to call the binaries by using createprocess but the problem is when the binaries run the command propmt flashes up and sort of makes the GUI look messy. Is there a way I can call these binaries and request that their window/prompt is not visible? Thanks

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      ProcessStartInfo.CreateNoWindow = true;

      xacc.ide - now with IronScheme support
      IronScheme - 1.0 alpha 1 out now

      1 Reply Last reply
      0
      • Y Ylno

        Hello, I have several precompiled binaries(but not the code) and am looking to make a GUI to make the use of these binaries more user friendly. I was going to call the binaries by using createprocess but the problem is when the binaries run the command propmt flashes up and sort of makes the GUI look messy. Is there a way I can call these binaries and request that their window/prompt is not visible? Thanks

        J Offline
        J Offline
        Justin Perez
        wrote on last edited by
        #3

        Ylno wrote:

        I have several precompiled binaries(but not the code) and am looking to make a GUI to make the use of these binaries more user friendly. I was going to call the binaries by using createprocess but the problem is when the binaries run the command propmt flashes up and sort of makes the GUI look messy. Is there a way I can call these binaries and request that their window/prompt is not visible?

        Yes. Set the CreateNoWindow property in your Process StartInfo to true. See below.

          Process cmdLineProcess = new Process();
        
          cmdLineProcess.StartInfo.CreateNoWindow = true;
        

        I'm going to become rich when I create a device that allows me to punch people in the face over the internet. "If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer

        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