Ken, you can do this with the Windows Scripting Host.
(lifted from the MSDN CreateShortcut Method entry)
osh = CreateObject('WScript.Shell')
oShellLink = osh.CreateShortcut("Current Script.lnk")
oShellLink.TargetPath = WScript.ScriptFullName
oShellLink.Save
oUrlLink = WshShell.CreateShortcut("Microsoft Web Site.URL")
oUrlLink.TargetPath = "http://www.microsoft.com"
oUrlLink.Save
Cheers,
Andrew
>How can I read the shortcuts (*.lnk) files too determine paths?
>How does one create these files and place them on the desktop?
If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?
From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."
All my FoxTalk and other articles are available on my
web site.
Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.