Ben,
I don't know about focusing on the existing window. For that, you
might have to cycle through the open windows, and maybe query the text of
the windows.
However, in order to open a the containing folder, you would want to use
the Process class, and then pass the name of the directory as the process to
execute. You have to also set UseShellExecute on the ProcessStartInfo
instance to true, I believe.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Ben Dewey" <As*********@hotmail.com> wrote in message
news:eH*************@TK2MSFTNGP10.phx.gbl...
I have what I believe is probably a simple question...
Is there any programatic way to launch a program similar to the Start->Run
Command.
I am have a link in a ListView for "Open Containing Folder", I want to
open the page using windows explorer is there a way to Run("explorer.exe
c:\folder\")?
Also, Is there anyway to focus on an existing window if one is already
created.