Opening a windows folder

  • Thread starter Thread starter mcescher
  • Start date Start date
M

mcescher

User would like to have a button that opens a folder. Like dblclicking
on My Computer.

Path will be built from some previously entered data. I can find it,
but how do I display the folder

Can a button open a shortcut to a folder? Could I update the path of
the shortcut?

Thanks,
Chris
 
mcescher said:
User would like to have a button that opens a folder. Like
dblclicking on My Computer.

Path will be built from some previously entered data. I can find it,
but how do I display the folder

You could use the fHandleFile function posted at

http://www.mvps.org/access/api/api0018.htm
API: Start an app with ShellExecute

to open the folder:

strFolderPath = "C:\Temp" ' for example

fHandleFile strFolderPath, WIN_NORMAL

Or you could probably shell to Explorer:

Shell "explorer.exe " & Chr(34) & strFolderPath & Chr(34)
Can a button open a shortcut to a folder? Could I update the path of
the shortcut?

A button could open a shortcut, using a similar method, but you don't
need to if you have the path to the folder.
 

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

Back
Top