MAC アドレスを取得する方法はありますか?

4 views (last 30 days)
MathWorks Support Team
MathWorks Support Team on 23 Jul 2012
Windows マシンで MAC アドレスを取得する方法を教えてください。また、変数にアドレスを格納する方法も教えてください。

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 23 Jul 2012
DOS 関数を使用し、getmac を実行してください。DOS 関数の第二出力引数に getmac の内容が格納されます。アドレス部分を指定してご利用ください。
[status,result] = dos('getmac');
mac = result(146:164)

More Answers (0)

Categories

Find more on Engines & Motors in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!