PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Function to find out the SerialNumber?
Function to find out the SerialNumber?
Iniciado por guest, 08,jun. 2016 11:27 - 2 respuestas
Publicado el 08,junio 2016 - 11:27
Hi,
I need a function to find out the SerialNumber of the pc, like the command line:

> wmic bios get serialnumber

Thank you,
Dann
Publicado el 08,junio 2016 - 12:15
If you can do it using wmi check this exemple WD DOTNET WMI it may help you.
Publicado el 08,junio 2016 - 13:52
Hi

one easy way is to do a shellexecute of your command line, but with a little change... add " > serial.txt" at the end
Then just read the serial.txt file (with floadtext) and read your serial number.

Best regards