UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Using a button to open 'My Music'    
 
   
Paul75
post 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.
Go to the top of the page
 
+
jmcwk
post 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.
Go to the top of the page
 
+
freakazeud
post 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
Go to the top of the page
 
+
Paul75
post Jul 14 2006, 05:43 AM
Post #4

New Member
Posts: 6



Thanks very much for that, has solved my problem.

Cheers.
Paul.
Go to the top of the page
 
+
freakazeud
post 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 the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 24th May 2013 - 03:38 AM