Shell in C#

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Justin

    #1

    Shell in C#

    Hi,

    Is there a comparable shell statement for C#? In vb.net you just use
    Shell(). I need to shell out a process from within C#.

    Thanks.


  • gani

    #2
    Re: Shell in C#

    hi justin,
    use static method System.Diagnost ics.Process.Sta rt


    --
    gani
    pls visit http://thedeveloperscorner.com.ph



    "Justin" <jdalwood@yahoo .com> wrote in message
    news:%23actxhHi DHA.1692@TK2MSF TNGP09.phx.gbl. ..[color=blue]
    > Hi,
    >
    > Is there a comparable shell statement for C#? In vb.net you just use
    > Shell(). I need to shell out a process from within C#.
    >
    > Thanks.
    >
    >[/color]


    Comment

    • Michael Culley

      #3
      Re: Shell in C#

      Or for greater control if needed create a new process object. For example, you can get an event when the process ends.

      --
      Michael Culley


      "gani" <a@a.com> wrote in message news:ek2tmvIiDH A.1480@TK2MSFTN GP12.phx.gbl...[color=blue]
      > hi justin,
      > use static method System.Diagnost ics.Process.Sta rt
      >
      >
      > --
      > gani
      > pls visit http://thedeveloperscorner.com.ph
      >
      >
      >
      > "Justin" <jdalwood@yahoo .com> wrote in message
      > news:%23actxhHi DHA.1692@TK2MSF TNGP09.phx.gbl. ..[color=green]
      > > Hi,
      > >
      > > Is there a comparable shell statement for C#? In vb.net you just use
      > > Shell(). I need to shell out a process from within C#.
      > >
      > > Thanks.
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Greg Ewing [MVP]

        #4
        Re: Shell in C#

        Justin, check out the Process class in System.Diagnost ics. Also,
        groups.google.c om, msdn.microsoft. com, and www.google.com are great places
        to find answers like this.

        --
        Greg Ewing [MVP]
        IT support built exclusively for nonprofits. 25 years of managed IT, help desk, and cybersecurity - so your team can focus on your mission.


        "Justin" <jdalwood@yahoo .com> wrote in message
        news:#actxhHiDH A.1692@TK2MSFTN GP09.phx.gbl...[color=blue]
        > Hi,
        >
        > Is there a comparable shell statement for C#? In vb.net you just use
        > Shell(). I need to shell out a process from within C#.
        >
        > Thanks.
        >
        >[/color]


        Comment

        Working...