Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automatic version update at desktop link
Message
 
 
To
25/09/2002 20:34:32
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00704527
Message ID:
00704551
Views:
16
I'm not sure why you would want to do that. Anyway, here is a basic code to rename desctop shortcut.
oShell = CREATEOBJECT("wscript.shell")
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
cDesktop = ADDBS(oShell.SpecialFolders("Desktop"))
DIMENSION laList[1]
ADIR(laList, cDesktop + "My Application*.lnk")
oFile = oFSO.Getfile(cDesktop + laList[1,1])
oFile.Name = "My Application V-3-5-4.lnk"
>Dear all,
>
>By utilizing the function AGetFileVersion() I can update the version number at the program windows caption when version update is made.
>
>However with what codes can I update the desktop link with "ProgramName - VersionNumber" programatically, say, when the EXE file is run, check the VersionNumber at the deaktop link with the one of the EXE file, if not match, synchronize the version number with the one of the EXE file ?
>
>With regards,
>
>Ransome
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform