Thanks for the code. I'm probably going to go with your first option and give that a try. I failed to mention in my first email that I am dealing with certain constraints. The program I am using will only read from text files. It will be parsing the text file created from this script.

Couple of questions though. I've never seen the @mac macro, is that new? And what format does that put the mac in?

Like this xx.xx.xx.xx.xx.xx or like xx-xx-xx-xx-xx-xx or perhaps another way?

The program I'm using to parse the text file needs to have the mac address formatted a certain way. Like this xxxxxxxxxxxx
No dashes, spaces, hyphens. Just one long string.

Another thing I can see is going to be a problem is the fact that only one computer would be able to write to the text file at a time. It was my hope that I could run this as part of the login script, but that doesn't seem feasible now that I think about it more. Not sure about that one.

Also, wish I could use the ini form of that code. It's so easy that way!


Edited by cyri (2005-08-10 02:43 AM)