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. .NET (Core and Framework)
  4. Running command in command prompt from .NET

Running command in command prompt from .NET

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharptutorial
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.
  • S Offline
    S Offline
    sailesh_gupta
    wrote on last edited by
    #1

    HI, Can any one guide me how to run commands from a .Net Application developed in C# at Command prompt(i.E C:\>) Any links on it would also be helpful

    L D L 3 Replies Last reply
    0
    • S sailesh_gupta

      HI, Can any one guide me how to run commands from a .Net Application developed in C# at Command prompt(i.E C:\>) Any links on it would also be helpful

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, try Process.Start("cmd.exe", args) If that does not do what you want, have a look at ProcessStartInfo class and use Process.Start(psi) :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Fixturized forever. :confused:


      1 Reply Last reply
      0
      • S sailesh_gupta

        HI, Can any one guide me how to run commands from a .Net Application developed in C# at Command prompt(i.E C:\>) Any links on it would also be helpful

        D Offline
        D Offline
        dan sh
        wrote on last edited by
        #3

        You have asked same thing in C# forum as well.[^]

        HAPPY DIWALI[^]

        1 Reply Last reply
        0
        • S sailesh_gupta

          HI, Can any one guide me how to run commands from a .Net Application developed in C# at Command prompt(i.E C:\>) Any links on it would also be helpful

          L Offline
          L Offline
          leckey 0
          wrote on last edited by
          #4

          I know d@nish was trying to get the same point across...

          Blog link to be reinstated at a later date.

          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