Not sure if you've had a response yet buy this is what I do...
REM Set environment variables to identify network location
SET NET_ADDR="%NETWORK_ADDRESS">>2
SET NET_ADDR="%<NET_ADDR>"<<4
IF "%<NET_ADDR>"="04" THEN
do stuff...
Basically %NETWORK_ADDRESS will return the hex value of the ipaddress of the workstation, I'm using class C addresses so I need to strip off the last octet (using shift >> 2) and first two octets (<<4) to leave my variable NET_ADDR with just the third, in the example above this is subnet 04 - as I said, this is a hex value so you will need to convert or put "write "%NETWORK_ADRRESS" " in your login script to identify yours - hopefully it will make sense then.
Originally Posted by hbiemans
|
I want to make a mapping only for a ip-range. How can i do this in a loginscript?
Thanks for your answers
Henk
|