Path (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


accessman -> Path (5/12/2006 12:18:10)

Hi,

Ans1:
MyShortcut.TargetPath = "C:\Program Files\Microsoft Office\Office10\Msaccess.exe "

Ans2:
MyShortcut.TargetPath = "C:\Program Files\..\Msaccess.exe "

The Ans1 works fine.
The Ans2 doesn't work.

I want to work the Ans2, because every user machine's Office path is different.

For example:
MyShortcut.TargetPath = "C:\Program Files\Microsoft Office\Office10\Msaccess.exe "

MyShortcut.TargetPath = "C:\Program Files\Microsoft Office\Office11\Msaccess.exe "

MyShortcut.TargetPath = "C:\Program Files\Microsoft Office\Office12\Msaccess.exe "

MyShortcut.TargetPath = "C:\Program Files\Microsoft Office\Office13\Msaccess.exe "

So, I want to create the link with the target
MyShortcut.TargetPath = "C:\Program Files\...\Msaccess.exe "

How can I do it?
Please let me know, thanks.




rdouglass -> RE: Path (5/12/2006 12:43:53)

This help any?

http://support.microsoft.com/kb/240794/en-us




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.03125