Results 1 to 3 of 3

Thread: Placing shortcuts on desktop

  1. #1

    Thread Starter
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Placing shortcuts on desktop

    I have a program that can be installed on any networked computer. The program is accessible through the network.

    Upon installation, how do I add desktop shortcuts to all computers in the network? I imagine somehow searching out the LAN and creating shortcuts on each desktop that is part of the network.

  2. #2
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330
    Hi,
    Here's a piece of code I use to place a shortcut to an Excel file on the desktop of all the users of our NT Terminal server.
    Hope this helps or gives you some ideas.
    Al.

    Code:
    Dim bridge As IWshRuntimeLibrary.IWshShell_Class
    
    Sub Main()
    Set bridge = CreateObject("WScript.Shell")
    PathName = "m:\wtsrv\profiles\"
    Profile = Dir(PathName)
    Do While Profile <> ""
    StartupPath = "M:\WTSRV\Profiles\" & Profile & "\desktop"
    Set sc = bridge.CreateShortcut(StartupPath & "\60M01-02-2002.lnk")
    sc.TargetPath = "M:\WTSRV\Profiles\asmith\personal\60M01-02-2002.xls"
    sc.Save
    Set sc = Nothing
    Profile = Dir
    Loop
    Set bridge = Nothing
    End
    End Sub
    A computer is a tool, not a toy.

  3. #3

    Thread Starter
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    thanks ill look that over

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