create a shrotcut of a network path to your desktop

Author Message
mgreen

  • Total Posts : 21
  • Scores: 0
  • Reward points : 0
  • Joined: 12/8/2010
  • Status: offline
create a shrotcut of a network path to your desktop Tuesday, December 14, 2010 7:15 AM (permalink)
0
Set WSHShell = CreateObject("WScript.Shell")
Set FSO = WScript.CreateObject("Scripting.FileSystemObject")
strDoc = WshShell.SpecialFolders("Desktop")
strShortcut = strDoc & "\\shortcut.lnk"


If Not FSO.FileExists(strShortcut) Then
Set Link = WshShell.CreateShortcut(strShortcut)
Link.TargetPath = "\\server\folder"
Link.Description = "Shared Drive"
Link.Save
End If
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9