daruffin
asked on
I want to Open a short cut on my desktop using VBA or MS Access
Dim a as Object
Dim str as string
Dim Target As string
Dim Startin AS string
Target = "C:\Program Files\Sage Software\V420JO\MAS90\Home \pvxwin32. exe" -hd ..\launcher\sota.ini ..\soa\startup.m4p -arg direct uion vbc "" JOB jt_timetrackerlaborimport_ ui AUTO
Startin ="C:\Program Files\Sage Software\V420JO\MAS90\Home "
str = Target & Startin
a = SHELL(str,vbNormalFocus)
Dim str as string
Dim Target As string
Dim Startin AS string
Target = "C:\Program Files\Sage Software\V420JO\MAS90\Home
Startin ="C:\Program Files\Sage Software\V420JO\MAS90\Home
str = Target & Startin
a = SHELL(str,vbNormalFocus)
ASKER
This only tells me how to create a short cut I need to open a short cut using the shell command. I want to click a button on my MS Access form and open this short cut which is located on my desktop.
ASKER
You keep sending me how to create a short cut. I want to run my shortcut which is already created on my desktop and This shortcut run another program. How can I run this short using the Shell command
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Let me try this and I will get back to you
ASKER
This worked out well
;-)
http://www.windowsdevcenter.com/pub/a/windows/2004/04/13/VB_Shortcuts.html
Best regards...