Page 1 of 1 1
Topic Options
#186334 - 2008-03-18 10:33 AM howto map network drive (newb)
spiker Offline
Just in Town

Registered: 2008-03-18
Posts: 2
im completely a beginner so i hope you guys can help me out.

i want te create a script that will automaticly put all the networkdrives
on the client computer, so that i dont need to do this manually al the time

Top
#186335 - 2008-03-18 11:14 AM Re: howto map network drive (newb) [Re: spiker]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4642
Loc: The Netherlands
Hi and welcome to the board.

There are several options you could use to map one or more drives. They all use the Use command. Below are two examples. They both remove any mapping to the S drive done earlier to ensure that the following Use command succeeds. The first example just deletes the S drive and remaps it. The second example checks to see if the user that is running this script is a member of a specific group. This way you can map drives just for the users that are a member of the group and should have the drive mapped and skip it the user is not a member of the specific group and doesn’t need the drive.

 Code:
Use s: /delete /persistent
Use s: "\\server\share"


 Code:
If InGroup("groupname")
	Use s: /delete /persistent
	Use s: "\\server\share"
EndIf


Edited by Mart (2008-03-18 11:15 AM)
Edit Reason: Added second code tags.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#186336 - 2008-03-18 11:53 AM Re: howto map network drive (newb) [Re: Mart]
spiker Offline
Just in Town

Registered: 2008-03-18
Posts: 2
tnx alot for youre help

ive got the script set up

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Bryce) and 183 anonymous users online.
Newest Members
gkustra, emnipetro, Hirze, thequeen, ameliaryan
17642 Registered Users

Generated in 0.028 seconds in which 0.01 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org