Just in case you are not sure how to create it with scripting:
oShell.o
cDeskTop=oShell.SpecialFolders("desktop")
oShortcut=oShell.CreateShortcut(cDeskTop+"\MyLink.LNK")
oShortcut.TargetPath="c:\Application_Dir\MyApp.exe"
oShortcut.Description="Application Description"
oShortcut.WorkingDirectory="c:\Application_Working_Dir"
oShortcut.Save
This will create a shortcut for you in the appropriate desktop location.
If you use the command window to create a scripting object you can see the
other properties that oShortcut has but the above ones are the main ones.
Dave Crozier
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Tracy Pearson
Sent: 19 October 2009 14:48
To: [email protected]
Subject: RE: How to change a desktop icon
Creating an icon in the [icon] section will overwrite an existing icon if it
exist.
Or are you needing to create an icon in VFP? You could use the shell script
object to create it.
HTH,
Tracy
-----Original Message-----
From: Eurico Chagas Filho
Sent: Thursday, October 15, 2009 3:23 PM
Hi.
I need make program in VFP9.2 that allows me to change the target of a
desktop icon. It's an InnoSetup installation, but I don't know hw do it
using Pascal.
Any hints ?
TIA, E.
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/9bbea2cd3773458fa07a3fafff475...@develop
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.