Results 1 to 13 of 13

Thread: how to update an existing desktop shortcut?

Hybrid View

  1. #1
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: how to update an existing desktop shortcut?

    well i've got no explanation for that. what OS are you using, I'm running XP.

    Perhaps you should just check for the shortcut, delete it and then make your new one.

  2. #2

    Thread Starter
    Fanatic Member Navarone's Avatar
    Join Date
    Jun 2003
    Location
    Akron, Ohio USA
    Posts
    740

    Re: how to update an existing desktop shortcut?

    I am also running WinXP, but I was installing my app on a Win2000 OS. I don't think that would make any difference.

    Deleting one and then making a new one would be accaptable. Is this the correct whay to do that?
    VB Code:
    1. If strLinkName = "Agent Prospecting Presentation" Then
    2.     Kill "c:\MyWestfieldPresentation\Westfield_1to1F_v1.exe"
    3. Else
    4.     strLinkName = "Agent Prospecting Presentation"
    5.     strLinkPath = "c:\MyWestfieldPresentation\Westfield_1to1F_v1.exe"
    6.     strLinkArguments = ""
    7.     fPrivate = True                              ' Add shortcut to desktop.
    8.     strGroupName = "..\..\Desktop"
    9.     sParent = "$(Programs)"
    10.     fSuccess = fCreateShellLink(strGroupName & vbNullChar, strLinkName, strLinkPath, strLinkArguments & vbNullChar, fPrivate, sParent)
    11.  
    12.  End If
    He who never made a mistake never made a discovery?

  3. #3
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: how to update an existing desktop shortcut?

    That would delete your .exe. You just want to delete the link on the dektop 'Agent Prospecting Presentation.lnk'

    Presumably you'd have to find the location of the user's desktop first, so you can kill the link - Finding Special Folders

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width