To associate a routine to only one PC
조회 수: 2 (최근 30일)
이전 댓글 표시
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
채택된 답변
Star Strider
2020년 9월 24일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!