Re: script for mapped drives
- From: "Slim" <me@xxxxxxxx>
- Date: Tue, 12 Dec 2006 19:32:17 +0900
"mcp" <zafarhussain@xxxxxxxxxxxxxxxx> wrote in message
news:1165875750.600607.268810@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Amfwi can you please tell me where i can find out what those switch
means, that you have added to mapdrives.
thanks
they are arguments
the first argument is argument number 0 the drive letter "V:"
the second argument is argument number 1 the shared folder
\\server\sharedfolder
in the script it loks for arguments like so
Set objArgs = WScript.Arguments
dim driveLetter:driveLetter = objArgs(0)
dim drivePath:drivePath = objArgs(1)
Slim wrote:
Done
http://dev.thatsit.net.au/Samples/WSH/thatsIT/fso/networkDrives.asp
"mcp" <zafarhussain@xxxxxxxxxxxxxxxx> wrote in message
news:1165748823.856811.295420@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
thanks for that guys,
Slim, is there any chance you can comment the script so i know what
line does what.
the two othe OU's do i repeat the same script with relevent drive
letter and map to that OU?
or can i just add the other map drive to the same script.
many thanks
Slim wrote:
here you go
http://dev.thatsit.net.au/Samples/WSH/thatsIT/fso/networkDrives.asp
"mcp" <zafarhussain@xxxxxxxxxxxxxxxx> wrote in message
news:1165603985.280574.324070@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hello everyone,
can someone please tell me how to write a script which will delete
any
mapped drives on startup and then map relevent drives at the same
time.
for example i want to create a script that can do the following:
map Z drive to teachers OU
map S drive to pupil OU
map T drive to Admin OU
this script needs to check that the above drives are not mapped
already
when clients startup in morning.
i am complete novice so please step by step instruction will be very
useful.
many thanks
Z
.
- References:
- script for mapped drives
- From: mcp
- Re: script for mapped drives
- From: Slim
- Re: script for mapped drives
- From: mcp
- Re: script for mapped drives
- From: Slim
- Re: script for mapped drives
- From: mcp
- script for mapped drives
- Prev by Date: Re: How to send email when file changes?
- Next by Date: Re: i want to add a promt to a batch command.
- Previous by thread: Re: script for mapped drives
- Next by thread: How change subnet mask at all my net computers?
- Index(es):
Relevant Pages
|