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

4 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2012 年 7 月 23 日
Windows マシンで MAC アドレスを取得する方法を教えてください。また、変数にアドレスを格納する方法も教えてください。

採用された回答

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEngines & Motors についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!