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
Printable View
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
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
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
:confused:
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