Distinguish a computer from an other

djlbe's icon

heyheyyy

I pass my time to change from my PC to my laptop and viceversa.
There is some subtility to change for each.
Is there is an object or a trick for distinguish them easily?

yair reshef's icon

i hack it with keeping a name.txt file in root drive with name of pc
then loadbang it on startup, this also allows for simulating the other machine.

Jan M's icon

I can think of several options. Ie you could write a Java- class that outputs the MAC adress of your networkadapters. They are unique.
Or - without scripting- write an abstraction that simply puts out that a name or number when banged. Modify that absraction slightly so that it put out a different name on each machine...
Jan

Wetterberg's icon

another way: often people will have named their root drives differently across several computers. You could easily check for those names.

djlbe's icon

Thank ! I think yair had the best and simple idea. I will do that with a [coll]