Desktop Icon/shortcut verification

Started by scotts, January 20, 2014, 01:43:13 PM

Previous topic - Next topic

scotts

Hi,

how may I determine if a specific icon/shortcut exists on the current user desktop , and altimately alter it?

Thanks for nay nudge in the correct direction


Scott

scotts

BTW - I know of ShortcutInfo and ShortCutDir, but I was looking for a way to determine if a shortcut is on the public desktop or the user desktop - etc. Almost like the FileItemize command..

Thanks

Deana

I recommend using FileExist. keep in mind that the underling file contains the file extension .lnk.


Code (winbatch) Select
desktop = ShortCutDir("Desktop")              ; User
commondesktop = ShortCutDir("Common Desktop") ; Public
ret = FileExist( desktop : "Test.lnk" )
if ret
   Pause("Shortcut","Exists.")
else
   Pause("Shortcut","Does Not Exist.")
endif

Deana F.
Technical Support
Wilson WindowWare Inc.