My Assistant
![]() ![]() |
|
|
Jul 13 2006, 06:54 AM
Post
#1
|
|
|
New Member Posts: 6 |
Hi,
On a form, how do I make a button open the 'My Music' folder? Cheers, Paul. |
|
|
|
Jul 13 2006, 07:02 AM
Post
#2
|
|
|
UtterAccess VIP Posts: 12,201 From: Tacoma, WA. |
Paul,
Welcome to UA Forums! What type of folder is it? You can use the Command button wizard located in the Toolbox Toolbar. Click on a command button and drag it to a location on your form then go from there. |
|
|
|
Jul 13 2006, 09:21 AM
Post
#3
|
|
|
UtterAccess VIP Posts: 31,413 From: NC, USA |
Hi,
welcome to UA forums. If you want to hardcode the path then use: Dim stAppName As String stAppName = "C:\WINNT\explorer.exe c:\My Music" Call Shell(stAppName, 1) You can change the number at the end of the syntax to any of the one you want: 1 = open normal 2 = open minimized 3 = open maximized Obviously you will need to change the directory of where your explorer.exe is located on Win2000 it is the above example! If you want to dynamically retrieve the My Music folder of the user logged in then check this earlier discussion. You might also find these helpful: 01 02 HTH Good luck |
|
|
|
Jul 14 2006, 05:43 AM
Post
#4
|
|
|
New Member Posts: 6 |
Thanks very much for that, has solved my problem.
Cheers. Paul. |
|
|
|
Jul 14 2006, 06:00 AM
Post
#5
|
|
|
UtterAccess VIP Posts: 31,413 From: NC, USA |
You're welcome.
Good luck on future projects! |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 24th May 2013 - 03:38 AM |