Scripts Thread, nethood links in Coding and Web Development; ok here is the problem Getting fed up with all the drives especially for little programmes and files that dont ...
15th November 2007, 08:11 PM #1
ok here is the problem Getting fed up with all the drives especially for little programmes and files that dont need a drive extention so i would like to deploy the links. here is a peice of vbs i found on the net and use at the moment.
it works really well but being a noob at vbs not very good at creating my own scripts i have about 5 of these at the moment and want to put it into one script. Also i want to be able to delete old ones all the links i create end in nm to define the links i create from the ones users create. I hope someone can help please.
Const NETHOOD = &H13&
Set objWSHShell = CreateObject("Wscript.Shell")
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(NETHOOD)
Set objFolderItem = objFolder.Self
strNetHood = objFolderItem.Path
strShortcutName = "Curriculum folder nm"
strShortcutPath = "\\marcus\Curriculum"
Set objShortcut = objWSHShell.CreateShortcut _
(strNetHood & "\" & strShortcutName & ".lnk")
objShortcut.TargetPath = strShortcutPath
IDG Tech News
Last Post: 3rd December 2008, 01:19 PM
By thegrassisgreener in forum General Chat
Last Post: 19th November 2007, 04:49 PM
By beeswax in forum Virtual Learning Platforms
Last Post: 14th July 2007, 11:04 PM
By Simcfc73 in forum Wireless Networks
Last Post: 16th January 2006, 05:42 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)