Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - map a published shared folder

Reply
 
Old 09-07-2008   #1 (permalink)
Mat


 
 

map a published shared folder

Hi,

How can I map a shared folder published in active directory using a drive
letter z.
thanks

My System SpecsSystem Spec
Old 09-08-2008   #2 (permalink)
Cmor


 
 

Re: map a published shared folder

Does "Net Use z: \servername\sharename " not work for you?

As you're asking in a vbscript forumn, how about...

' From the book, "Windows XP Cookbook"
' ISBN: 0596007256

' ------ SCRIPT CONFIGURATION ------
strDrive = "<Drive>" ' e.g. N:
strPath = "<Path>" ' e.g. \\rtp01\c$\temp
strUser = "<User>" ' e.g. AMER\rallen
strPassword = "<Password>"
boolPersistent = True ' True = Persistent ; False = Not Persistent
' ------ END CONFIGURATION ---------
set objNetwork = WScript.CreateObject("WScript.Network")
objNetwork.MapNetworkDrive strDrive, strPath, boolPersistent, _
strUser, strPassword
WScript.Echo "Successfully mapped drive"


HTH,

Seymour


On Sep 7, 10:35*pm, Mat <M...@xxxxxx> wrote:
Quote:

> Hi,
>
> How can I map a shared folder published in active directory using a drive
> letter z.
> thanks
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: Create Published folder in AD PowerShell
Create Published folder in AD PowerShell
Explorer crashes when trying to open a folder on a shared folder on a Win 2003 server Vista networking & sharing
Can't create a new file or folder with in a shared folder on a Windows XP machine. Basic Vista networking questions Vista installation & setup
Users Folder always gets shared when sharing another folder ??? Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46