How can network places in Windows XP be edited in vbscript

please help
itbabeAsked:
Who is Participating?
 
chandru_solCommented:
Try this script to add to network places..........

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 = "Finance Department Public Folder"
strShortcutPath = "\\atl-finance-01\public"
 
Set objShortcut = objWSHShell.CreateShortcut _
    (strNetHood & "\" & strShortcutName & ".lnk")
objShortcut.TargetPath = strShortcutPath
objShortcut.Save

Open in new window

0
 
chandru_solCommented:
Can you please be more specific about your requirements?
0
 
itbabeAuthor Commented:
sorry ,  I have made a typo, let me rephrase.

How can network places in Windows XP be edited in vbscript ?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
chandru_solCommented:
Are you talking about the mynetwork places in windows XP? You want to edit the name or what you want to edit?
0
 
itbabeAuthor Commented:
We need to add a subtree item under My Network Places
0
 
chandru_solCommented:
Map network drives
0
 
itbabeAuthor Commented:
It has to be done via vbscript.
0
 
chandru_solCommented:
Hi itbabe,

Can you try this link?

http://www.computerperformance.co.uk/Logon/logon_scripts.htm

This will give you a idea about mapnetwork drives..

We can work on which script you want

regards
Chandru
0
 
itbabeAuthor Commented:
perfect,  it works
0
 
chandru_solCommented:
Thanks! great!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.