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. getting results from console aplication

getting results from console aplication

Scheduled Pinned Locked Moved C#
questionlearning
2 Posts 2 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.
  • M Offline
    M Offline
    mizitras
    wrote on last edited by
    #1

    Hey, I want to make a frontend for application that allready exists, and make it more userfriendly. Like for instance, many applications work with LAME.exe and/or LAME.dll. My questions are: a) How do I best send parameters to these exe's? Plain usage and use System-call on exe with added parameters??? (no idea, just a guess) b) All those other applications that use an exe, never make the exe 'pop-up', while I was thinking to use a System-call, and send parameters to the exe. That would open it (and a doslike window) and inject the parameters to the now open exe. But with a window visible. How else could it be done? b2) Can I internally link the exe in my project, so it works like a process in the background, and my GUI awaits an ending state of the process running in teh background? Is that possible and how it should be done in a neat way? Some pointers or things to look for are enough, I don't want entire pieces of code. As a beginner, I just don't know where to start, that's all.

    G 1 Reply Last reply
    0
    • M mizitras

      Hey, I want to make a frontend for application that allready exists, and make it more userfriendly. Like for instance, many applications work with LAME.exe and/or LAME.dll. My questions are: a) How do I best send parameters to these exe's? Plain usage and use System-call on exe with added parameters??? (no idea, just a guess) b) All those other applications that use an exe, never make the exe 'pop-up', while I was thinking to use a System-call, and send parameters to the exe. That would open it (and a doslike window) and inject the parameters to the now open exe. But with a window visible. How else could it be done? b2) Can I internally link the exe in my project, so it works like a process in the background, and my GUI awaits an ending state of the process running in teh background? Is that possible and how it should be done in a neat way? Some pointers or things to look for are enough, I don't want entire pieces of code. As a beginner, I just don't know where to start, that's all.

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      You will be able to get what you need if you use Process class. a)You can set Arguments property of ProcessStartInfo instance and then pass it to Process instance b)You can specify Hidden for WindowStyle property of ProcessStartInfo or set CreateNoWindow property to true c)I don't know what you mean by linking but if you start process by using Process class then you can retrieve its output if you set ProcessStartInfo's RedirectStandardOutput property to true

      #region signature my articles #endregion

      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