MAC アドレスを取得する方法はありますか?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Windows マシンで MAC アドレスを取得する方法を教えてください。また、変数にアドレスを格納する方法も教えてください。
Akzeptierte Antwort
MathWorks Support Team
am 23 Jul. 2012
DOS 関数を使用し、getmac を実行してください。DOS 関数の第二出力引数に getmac の内容が格納されます。アドレス部分を指定してご利用ください。
[status,result] = dos('getmac');
mac = result(146:164)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Engines & Motors finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!