Openning folder in c#

  • Thread starter Thread starter eyal
  • Start date Start date
E

eyal

Hi,

I'm trying to open a folder in c# with a given path.
for example i have list of folder path's in my listview.
what i need is when i click on one of them then a window is open
(like if i double click on my computer ...)

Thanks a lot.
 
eyal,

You can probably just pass the folder name to the static Start method on
the Process class, and it should open up a windows explorer folder for that
path. You might have to create a ProcessStartInfo instance, and set the
UseShellExecute property to true as well, but passing the path should do it.

Hope this helps.
 
Back
Top