Solved

c# focus on file in explorer

Posted on 2009-07-10
2
673 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
Comment Utility
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
Comment Utility
Thanks. Works great...
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

10 Experts available now in Live!

Get 1:1 Help Now