Article
An example will demonstrate:
"NO_DEFAULT REM site1 (10.30.0.1 to 10.30.255.255) IF NETWORK_ADDRESS>"0A1E0001" AND NETWORK_ADDRESS<"0A1EFFFF" THEN SET BUILDSERVER = "SERVER1" END REM site2 (10.32.0.1 to 10.32.255.255) IF NETWORK_ADDRESS>"0A200001" AND NETWORK_ADDRESS<"0A20FFFF" THEN SET BUILDSERVER = "SERVER2" END REM site3 (10.34.0.1 to 10.34.255.255) IF NETWORK_ADDRESS>"0A220001" AND NETWORK_ADDRESS<"0A22FFFF" THEN SET BUILDSERVER = "SERVER3" END REM Map drive to folder in local city USR volume MAP ROOT H:=%BUILDSERVER\USR:VOLUME\%USERNAME REM Map drive to NetWare server APPS: volume MAP ROOT M:=%BUILDSERVER\APPS: map s1:=z:=%BUILDSERVER\SYS:Public Exit"It is required to make the source variables on all NAL objects as identical as possible, including:
- Installation paths (driveletter:\app\app.exe)
- Template paths (driveletter:\templates\template folder)
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
User Comments
Can be simpler...
Submitted by spond on 15 December 2007 - 2:20am.
An alternative way to do this was already covered in TID 10062309 five years ago :)
- Be the first to comment! To leave a comment you need to Login or Register
This has been done a while ago, but.....
Submitted by rgray on 20 December 2007 - 10:36am.
a neater way to do it is to only use the network portion of the IP address...
;Test IP address
Set ZNET="%NETWORK_ADDRESS" >>4
;Test to see if PC is in Northampton
IF "%ZNET" = "0A0B" THEN
- Be the first to comment! To leave a comment you need to Login or Register


2