c# focus on file in explorer

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?

 
LVL 1
socom1985Asked:
Who is Participating?
 
Joep_KillaarsConnect With a Mentor Commented:
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
 
socom1985Author Commented:
Thanks. Works great...
0
All Courses

From novice to tech pro — start learning today.