The Joinsplitter that is in the script I got from this forum here! The Topic is "Manipulate strings" and you can find it on the 3rd page of this "Starters"
What it does is checking the various @IPADRESS0, 1, 2, 3 if it matches the Subnet that I am looking for and if so returning to the scriptexecution.
Maybe my programming is not elegant, but it does the trick.
As an explanation: we have roughly 4000 users and some of them use Laptops with Dockingstations and ISDN/GSM-Cards.
Now I found out that SOMETIMES the NIC which is connected to the network does not neccessarily correspond to @IPADRESS0 but something else.
We compile all Users who log on in a .CSV-file (also done via KIX) and have a routine which checks for doublettes and sorts them for easy checking.
As long as I was just checking for IPADRESS0 I kept getting adresses like 0.0.0.0 or 192.168.0.1 or the like.
Now I check for the IP-ADress beginning with 10 and move on from there.
The other things the Joinsplitter does is assembling a Path from Subnetspecific variable.
I hope I don't mess up terms but I try to explain it a bit.
Say we have a subnet 10.20.30.40 - In this Subnet there is a Computer which has 10.20.30.240 as his IP.
This .240 is true on nearly all subnets.
This computer has a Share vphome$ - in this share a subdirectory groups and in this subdir a file named grc.dat
I want to have a script which is universal to ALL 4000 users and connects to
10.20.30.240\vphome$\groups and copies grc.dat from there IF the client is in the Subnet 10.20.30.40
If the Client were to move to 10.20.40.x the Script should work for it too.
Even if the Subnet were 10.255.0.x the script should work.
I took a long time to check out a working concept which I also was able to understand.
Remember, I am no programmer - you may say that I am merely pushing buttons without much understanding beyond that.
Well I wouldnt be offended.....
Any further questions? I will try to answer them!
Thanks in advance for your help
_________________________
Serenity: You can't stop the Signal!