How to launch Windows Explorer with a special path

I want so launch an Windows Explorer Window wich shuld show a choosen directory and select a file in this directory. But how

Answer this question

How to launch Windows Explorer with a special path

  • yinpengxiang

    To lauch explorer with the specific directory showing.

    Process.Start("Explorer", "D:\school")

    This will loaded windows explorer with the directory d:\school as the default directory.


  • Lawrence 007

    I'm dont think that windows explorer takes in any additional parameters to determine default selected files etc.


  • gkostel

    I knew this way, but I want to select a speacial file in the opened directory not only opening the folder.

  • piell

    S_A_S,

    Try the method show in thhe following link that uses VC++ 6. Maybe it is hard to implement in VB.NET and this would be a solution:

    http://www.codeproject.com/macro/projectexplorer.asp



  • thuynganguyen

    I did not test if with opening the window by loading a file path, but as I think the one an only logical consequence by opening an Explorer Window with a path that belongs instead of a directory to a file then the file would be opended - Explorer surely would not load the directory an then select the file.
  • How to launch Windows Explorer with a special path