Solved

c# focus on file in explorer

Posted on 2009-07-10
2
684 Views
Last Modified: 2013-12-17
Im looking for a way to have focus on a specific file when I open windows explorer. I have a list of files in my app when I left click on a file I have "open containing folder" an this works but I want to have focus on that specific file. Is that even possible?

 
0
Comment
Question by:socom1985
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
Joep_Killaars earned 500 total points
ID: 24821570
Exceute the following code :
            Process proc = new Process(); 
            
            proc.StartInfo.FileName = @"EXPLORER.exe"; 
            
            proc.StartInfo.Arguments = @"/select, c:\temp\yourfile.txt"; 
 
            proc.Start();

Open in new window

0
 
LVL 1

Author Closing Comment

by:socom1985
ID: 31601991
Thanks. Works great...
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question