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()
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement