>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




General

Author Thread: Open folder with file(s) selected
Donald.Lagosz-Sinclair
Open folder with file(s) selected
Posted: Monday, February 12, 2007 1:31 PM (EST)
I often use the API function ShellExecute to open folders (e.g. via my ]OPEN user command), but I sometimes want a particular file in the folder highlighted. Searching MSDN, I found the SHOpenFolderAndSelectItems function, which is not listed in APLWADF.ini. Has anyone used this function, and if so, can you provide me with instructions for adding the function to the .ini file, and for calling it? Thanks in advance.


Comments:

Author Thread:
brent.hildebrand
Open folder with file(s) selected
Posted: Wednesday, February 14, 2007 4:13 PM (EST)

Here is an example showing the selection of a SINGLE file.

 

Ĺ’wcall 'ShellExecute' 0 "open" "explorer.exe" "/e,/select,c:\aplwin70\aplwco.dll" 0 "SW_SHOWNORMAL"

     

brent.hildebrand
Open folder with file(s) selected
Posted: Wednesday, February 14, 2007 4:52 PM (EST)
Over course the above assumes that "c:\aplwin70\aplwco.dll" or the file of your choice exsists.

     

Donald.Lagosz-Sinclair
Open folder with file(s) selected
Posted: Wednesday, February 14, 2007 11:00 PM (EST)
Many thanks, Brent! By the way, omitting the /e option opens a window without the folder pane, if that's what you want.

     



APL2000 Official Web Site

People rarely succeed unless they have fun in what they are doing.
--- Dale Carnegie

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |