Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing Destop Icons
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00231368
Message ID:
00233465
Views:
31
>>George,
>>I answered your other post before reading this one. I understand now. Its a simple deletion! I'll start playing to see if I can figure it out. Thanks for the help. I looked at the help file and you did a fine job of the help file.
>>
>Hi Robert,
>
>Thanks. I'll be updating it and the dll within the next couple of months.

I've now got it working as a class but not done. Currently, I've cut some code out of your inifiles.prg (class) and combined it with some of the .dll calls. Currently, I've got methods calls to allow you to check the windows desktop, by passing the name of the link file (.lnk). It checks the .lnk if it exists and sets a property for the name of the command file, then deletes the lnk file.
oX = createobject('lnkMaint')
oX = delDesktopLnk('MYFILE.LNK')
above sets:
oX.cCmdFileName = 'C:\PROGRAM FILES\MYDIR\MYFILE.EXE'
You can then choose to delete the command file.
oX.delCmdFile()

You can also send a parm containing the name of the sub directory under the windows 'C:\WINDOWS\START MENU\PROGRAMS\???'
oX.delStartMenuLnk('mydir\myfile.lnk')
Locates (if exists) c:\windows\start menu\mydir\myfile.lnk and attempts to find the command file myfile.lnk is associated with.
Then deletes the myfile.lnk

I'm going to expand the functionality, possibly using your find file routine that looks at the registry, and find next methods. When I am done, I'll send you a copy of it, since alot of it was your code!

Regards,
Robert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform