Creating a shortcut on the desktop with a specific Icon

Home Forums Microsoft Networking and Management Services GPO Creating a shortcut on the desktop with a specific Icon

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    meterman
    Member
    #110942

    I am using the following script:
    I need to have a specific ICON for the shortcut.
    The icon file will be located in the same folder as the script.
    How can I change my egsisting script to do this?
    Thanks
    Here is the script I am using now:

    ‘ Create a ShortCut to the ExecuTrain Libraries on desktop:
    ‘Create a WshShell Object
    Set WshShell = Wscript.CreateObject(“Wscript.Shell”)
    ‘Create a WshShortcut Object
    strDesktop = WshShell.SpecialFolders(“Desktop”)
    Set oURLLink = WshShell.CreateShortcut(strDesktop + “www.microsoft.com.URL”)
    ‘Set the Tragte URL
    oURLLink.TargetPath = “http://www.microsoft.com/”
    ‘Save the shortcut
    oURLLink.Save
    ________
    Sexdollxx

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.