I think you need to create a desktop shortcut?? If so, I just got this the other
day from this great service. I think but am not positive this will start a prg file.
It came from Sergey. Thanks so much. Even if you are new to vfp you will see that
all you need to do is to substitute in your program info under cFileName and ...LinkName,
Then put this program into a prg and run it to create your shortcut. I don't however
know how to position the shortcut in any particular place on the desktop. Maybe someone
else does.
Steve
*******************
cFileName = "c:\vfp\myGreatProgram.exe" && put the address of your program here
cLinkName = "Click here to start myGreatProgram" && this text on the icon
oShell = CREATEOBJECT('WScript.Shell')
cDesktop = oShell.SpecialFolders('Desktop')
oLink = oShell.CreateShortcut(cDesktop + "\" + cLinkName)
oLink.TargetPath = cFileName
oLink.Save()
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only