How to open windows explorer window from vb.net

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

    #1

    How to open windows explorer window from vb.net

    Hi

    I need my users to have a shortcut to windows\tasks from my vb.net app.
    But im not sure the simplest solution to lauch explorer and navigate to
    the directory...

    Anyone help ???

    Many thanks

    androoo

  • =?Utf-8?B?UC4gRGkgU3RvbGZv?=

    #2
    RE: How to open windows explorer window from vb.net

    Hello,

    you could use Process.Start:

    Dim procstart As New ProcessStartInf o("explorer")
    Dim winDir As String =
    System.IO.Path. GetDirectoryNam e(Environment.S ystemDirectory) + "\tasks"
    procstart.Argum ents = winDir
    Process.Start(p rocstart)

    Regards,
    P. Di Stolfo

    "androoo" wrote:
    Hi
    >
    I need my users to have a shortcut to windows\tasks from my vb.net app.
    But im not sure the simplest solution to lauch explorer and navigate to
    the directory...
    >
    Anyone help ???
    >
    Many thanks
    >
    androoo
    >
    >

    Comment

    • androoo

      #3
      Re: How to open windows explorer window from vb.net

      Thanks ill try it out !

      On Jan 26, 12:49 pm, P. Di Stolfo
      <PDiSto...@disc ussions.microso ft.comwrote:
      Hello,
      >
      you could use Process.Start:
      >
      Dim procstart As New ProcessStartInf o("explorer")
      Dim winDir As String =
      System.IO.Path. GetDirectoryNam e(Environment.S ystemDirectory) + "\tasks"
      procstart.Argum ents = winDir
      Process.Start(p rocstart)
      >
      Regards,
      P. Di Stolfo
      >
      >
      >
      "androoo" wrote:
      Hi
      >
      I need my users to have a shortcut to windows\tasks from my vb.net app.
      But im not sure the simplest solution to lauch explorer and navigate to
      the directory...
      >
      Anyone help ???
      >
      Many thanks
      >
      androoo- Hide quoted text -- Show quoted text -

      Comment

      • aaron.kempf@gmail.com

        #4
        Re: How to open windows explorer window from vb.net

        i usually just shell it out explore.exe "c:\"

        oh wait a second some dipshit decided that is too dangerous right?

        Thank god for Visual FRED

        -Aaron


        On Jan 26, 3:49 am, P. Di Stolfo <PDiSto...@disc ussions.microso ft.com>
        wrote:
        Hello,
        >
        you could use Process.Start:
        >
        Dim procstart As New ProcessStartInf o("explorer")
        Dim winDir As String =
        System.IO.Path. GetDirectoryNam e(Environment.S ystemDirectory) + "\tasks"
        procstart.Argum ents = winDir
        Process.Start(p rocstart)
        >
        Regards,
        P. Di Stolfo
        >
        >
        >
        "androoo" wrote:
        Hi
        >
        I need my users to have a shortcut to windows\tasks from my vb.net app.
        But im not sure the simplest solution to lauch explorer and navigate to
        the directory...
        >
        Anyone help ???
        >
        Many thanks
        >
        androoo- Hide quoted text -- Show quoted text -

        Comment

        Working...