Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 742
  • Last Modified:

How can network places in Windows XP be edited in vbscript

please help
0
itbabe
Asked:
itbabe
  • 6
  • 4
1 Solution
 
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
 
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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
 
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
 
itbabeAuthor Commented:
perfect,  it works
0
 
chandru_solCommented:
Thanks! great!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now