Distinguish a computer from an other

Jan 27, 2012 at 7:25pm

Distinguish a computer from an other

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?

#61497
Jan 27, 2012 at 8:42pm

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.

#221890
Jan 27, 2012 at 8:45pm

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

#221891
Jan 27, 2012 at 10:15pm

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

#221892
Jan 27, 2012 at 11:58pm

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

#221893

You must be logged in to reply to this topic.