Solved

c# focus on file in explorer

Posted on 2009-07-10
2
678 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error in page 3 46
How to avoid saving tif files a 2nd time using VS2015 and C#? 1 29
how to read json value 2 32
How to join on ID, with prefix? 15 0
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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:…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now