To associate a routine to only one PC
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mauro Colombano
el 24 de Sept. de 2020
Comentada: Star Strider
el 24 de Sept. de 2020
I would like to ask you for one or more commands that can read data that are only typical of one PC (e.g. the PC name, or its mac-address..).
Thanks a lot for your help
0 comentarios
Respuesta aceptada
Star Strider
el 24 de Sept. de 2020
For Windows systems, one option could be to do what MathWorks does, and use the ‘C:\’ volume sedrial number:
[s,cmdout] = system('vol');
SN = cmdout(end-9:end-1)
The ‘SN’ variable is a (1x9) character array.
4 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!