#45505 - 2003-09-25 07:40 AM
Re: running right login script
|
andysk
Fresh Scripter
Registered: 2003-09-18
Posts: 14
|
quote: You could do something like this:
code: --------------------------------------------------------------------------------
$tcpip = @IPAddress0$3octet = val(substr($tcpip,9,3)) ;Assuming all of your IP addresses use a single digit class CSELECT Case $3octet = 1 $location = "Headquarters" $localserver = "HQ" Case $3octet = 2 $location = "Branch Office" $localserver = "BR" Case 1 "Something screwy going on if you don't have either of these IP addresses"EndSelect;Time to map drives ? "YOu are located at the $location office" ? "Connecting G: to \\$localserver\data" use g: "\\$localserver\data"
--------------------------------------------------------------------------------
[ 23. September 2003, 07:57: Message edited by: Paul_Berquam ]
OK. That path i already implement, How about bandwidth concern ? Since sometime it will grab KIX32 from unexpected server. KIX32 size is around 200K while our bandwidth is around 128 Kbps, can you imagine if everybody (more than 200 users) grab from unexpected server, our bandwidth is dying.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 687 anonymous users online.
|
|
|