Node.JS MachineID? [SOLVED]

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,439
First Language
French
Primarily Uses
RMMV
hey guy is possible to get the machine id in nodeJS
especialy with this command

PHP:
os = require('os');
The closest to the single machine id would be either the mac or router address.
But i would like the id machine in Windows(the OS)
PHP:
info = os.networkInterfaces().Ethernet();
info[0].address;  //give "fe10::24a1:65b1:8ada:d3b"
info[0].mac; //give "6d:f0:31:e0:47:6c"

Tell me if this is not possible!!?
I would actually like to check a key based on the machine id.
 

Kino

EIS Game Dev
Veteran
Joined
Nov 27, 2015
Messages
556
Reaction score
794
First Language
English
Primarily Uses
RMMV
That's about as deep as you can get I think; also, what is this ID?
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,439
First Language
French
Primarily Uses
RMMV
That's about as deep as you can get I think; also, what is this ID?

you will find it in the Windows proprety or sometime with sofware.
Is usfull to make a custom key work only with the machine
 

Kino

EIS Game Dev
Veteran
Joined
Nov 27, 2015
Messages
556
Reaction score
794
First Language
English
Primarily Uses
RMMV
Oh okay; well this is just an idea but it may be possible using a child process in NodeJS to accesd the command line and look up the machine id.
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,439
First Language
French
Primarily Uses
RMMV
In fact without command line, the information is in all the windows pc at the same directory.
is in the file machine.inf
in C:\Windows\INF

PHP:
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}

I did some research, but I found nothing in JS or Node JS to get this information easily.:(
 

Kino

EIS Game Dev
Veteran
Joined
Nov 27, 2015
Messages
556
Reaction score
794
First Language
English
Primarily Uses
RMMV
You'd have to either use nodejs and change directories. To do that. You'd have to use the Path module. That module lets you join directories and move around.

Or you can do childprocess and use the command line, but it's not as flexible.

If you know Unix:
https://www.npmjs.com/package/shelljs

Can be used on any platform
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,439
First Language
French
Primarily Uses
RMMV
You'd have to either use nodejs and change directories. To do that. You'd have to use the Path module. That module lets you join directories and move around.

Or you can do childprocess and use the command line, but it's not as flexible.

If you know Unix:
https://www.npmjs.com/package/shelljs

Can be used on any platform
HEHE youpi i find i way

PHP:
var fs = require('fs');
var path = process.cwd();
var buffer = fs.readFileSync('C:\\Windows\\INF\\machine.inf');
console.log(buffer.toString());
SFSFGG.png
symply need use regex after to catch(match) the line i need
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,847
Messages
1,016,972
Members
137,561
Latest member
JaCrispy85
Top