Open Windows explorer from command button

S

Stefan

I have a switchboard. I would like to open the windows
explorer and or a specific file from the command button.
I have been able to open Favorites but not explorer.

Does anybody know the code for this.

Thanks in advance
 
S

Stefan

I figured out how to open windows explorer. Is there a
way to open a specific folder without having to open the
explorer?
 
H

Hugh O'Neill

Stefan said:
I figured out how to open windows explorer. Is there a
way to open a specific folder without having to open the
explorer?


Try:

explorer.exe DriveAndPathToYourFolder

hth

Hugh
 
D

Douglas J. Steele

Do you really want Windows Explorer to open, or are you in fact looking for
the standard Windows File Open dialog so that your user can select a file?

Assuming it's the File Open dialog you're actually looking for, check
http://www.mvps.org/access/api/api0001.htm at "The Access Web" for sample
code to use APIs to do this. This is the preferred method over using the
Common Dialogs control, as the OCX is prone to versioning problems.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top