Re: Help on script
From: Chris Jones (cka691_at_alltel.net)
Date: 03/16/04
- Next message: Kevin Weilbacher: "Copier to Server revisited"
- Previous message: John Bay: "RE: Flushing the ARP cache"
- In reply to: Chris Jones: "Re: Help on script"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 16 Mar 2004 16:43:54 -0500
By the way........change the \\server01\seals to match your servername and
drive name
"Chris Jones" <cka691@alltel.net> wrote in message
news:OXVUt85CEHA.1600@tk2msftngp13.phx.gbl...
> Try this I would email the script to you, but being you dont know me you
> wouldnt open it, I wouldnt either. Put this into a text file and rename it
> something.vbs call on it in you SBS Login .bat file.
>
> Set WshShell = WScript.CreateObject("WScript.Shell")
> Set WshNetwork = WScript.CreateObject("WScript.Network")
> Set AllDrives = WshNetwork.EnumNetworkDrives()
>
> DriveLetter = "Z:" 'must be capitalized
> RemotePath = "\\Server01\SEALS"
>
>
> AlreadyConnected = False
> For i = 0 To AllDrives.Count - 1 Step 2
> If AllDrives.Item(i) = DriveLetter Then AlreadyConnected = True
> Next
>
> If AlreadyConnected = False then
> WShNetwork.MapNetworkDrive DriveLetter, RemotePath
> WshShell.PopUp "Drive " & DriveLetter & " connected successfully."
>
> Else
> WShNetwork.RemoveNetworkDrive DriveLetter
> WshShell.PopUp "Drive " & DriveLetter & " disconnected."
> End if
>
>
>
>
>
>
> "Per Bäckman" <anonymous@discussions.microsoft.com> wrote in message
> news:b17501c40b56$d1629b90$a601280a@phx.gbl...
> > I would like to mapp up some drivletters for all users.
> > I edited C:\WINDOWS.2
> > \SYSVOL\domain\scripts\SBS_LOGIN_SCRIPT.bat (strange wit
> > the 2 in the filename)
> > so that it look like:
> > \\SERVER\Clients\Setup\setup.exe /s SERVER
> > Net Use o: \\server\hi-fog
> > Net Use m: \\server\spcs4
> > and so on
> >
> > Every time I log on to the clients i get "system error 85"
> > but the drives are mapped up. I seems like that it tries
> > for more tha once.
> > I also find foldernames like c:\windows.0, c:\windows.1,
> > c:\windows.2 on my drive. Yes I did create a large
> > partition of all from the start.
> > Question
> > What is the problem with my script
> > What are the miltipple kind of Windows folders?
> > Help me out pliiiiize
> >
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.622 / Virus Database: 400 - Release Date: 3/13/2004
>
>
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.622 / Virus Database: 400 - Release Date: 3/13/2004
- Next message: Kevin Weilbacher: "Copier to Server revisited"
- Previous message: John Bay: "RE: Flushing the ARP cache"
- In reply to: Chris Jones: "Re: Help on script"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|