Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi guys!
If you want to open a folder with select a file, the code is this:

VB
Shell("explorer.exe /select, " & "C:\test1.zip", vbNormalFocus)

Please let me know, how can I open explorer with selection of two files like "test1.zip" and "test2.zip" together?

Thanks.
Posted

1 solution

I do not believe it is possible using explorer.exe

http://support.microsoft.com/kb/314853[^]
 
Share this answer
 
Comments
Sh.H. 15-Apr-14 4:15am    
Well... If not possible, then how is it possible for "copy" ?
See, when you copy/paste multiple files to a folder, those copied files will be selected together.
ZurdoDev 15-Apr-14 6:36am    
Because it is built into the code. It's not available as a command line option.
Sh.H. 15-Apr-14 13:50pm    
Alright.
Please let me know how can I do it in a code?
Thanks.
ZurdoDev 15-Apr-14 13:56pm    
Refer to this, http://stackoverflow.com/questions/9355/programatically-select-multiple-files-in-windows-explorer

It may be possible but does not appear easy at all.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900