spiker
(Just in Town)
2008-03-18 10:33 AM
howto map network drive (newb)

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


Mart
(KiX Supporter)
2008-03-18 11:14 AM
Re: howto map network drive (newb)

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


spiker
(Just in Town)
2008-03-18 11:53 AM
Re: howto map network drive (newb)

tnx alot for youre help

ive got the script set up