|
-
Sep 7th, 2004, 02:36 AM
#1
Thread Starter
Lively Member
How to catch a key path? HELP!!!
How to catch a path of an application file from registration key?
if i click a button n no response then a message should display the actual path of file from registration key
which i can put the key path in
Shell "C:\ABC\.......", vbNormalFocus
Last edited by eric016; Sep 7th, 2004 at 11:26 PM.
-
Sep 7th, 2004, 12:24 PM
#2
I'm not quite sure but hopefully the following is what you need:
VB Code:
Dim strPath As String
strPath = GetSetting(sApp, sSection, sKey) 'set actual values or this line will error otherwise
If MsgBox("Would you like to run this program:" & vbNewLine & strPath, vbYesNo,"Confirmation Required") = vbYes Then
Shell strPath, vbNormalFocus
End If
-
Sep 7th, 2004, 10:10 PM
#3
Thread Starter
Lively Member
i understand the flow of ur code, but why it still cant catch the path n display invalid procedur call or argument???
i think it cant work-->strPath = GetSetting(sApp, sSection, sKey)
pls tell me why
tks
-
Sep 8th, 2004, 11:53 AM
#4
It's just a sample, eric.
In your earlier post you've mentioned this:
"... message should display the actual path of file from registration key ..."
So assumed that you are getting your value from the registry. If you do then use use your own procedure or reffer to MSDN for more information on GetSetting() function.
Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|