Open Windows explorer from command button

  • Thread starter Thread starter Stefan
  • Start date Start date
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
 
I figured out how to open windows explorer. Is there a
way to open a specific folder without having to open the
explorer?
 
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
 
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.
 
Back
Top