Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to select file in Explorer?

Status
Not open for further replies.

PatmanP

Programmer
Nov 11, 2003
3
PL
I need to know how select file in Explorer after I create new instance using ShellExecute?
 
PatmanP,

According to MSDN ( use [/code]/select,filename[/code] to do this from the command-line.

Example:
Code:
explorer /select,c:\Program Files

Note the comma; it's required. Also, please note that you can't do this with hidden files, even if they're displayed.

Hope this helps...

-- Lance
 
Another question. How to use drag'n'drop when I'm moving or copying file from my application to Explorer?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top