MAC アドレスを取得する方法はありますか?
4 views (last 30 days)
Show older comments
Windows マシンで MAC アドレスを取得する方法を教えてください。また、変数にアドレスを格納する方法も教えてください。
Accepted Answer
MathWorks Support Team
on 23 Jul 2012
DOS 関数を使用し、getmac を実行してください。DOS 関数の第二出力引数に getmac の内容が格納されます。アドレス部分を指定してご利用ください。
[status,result] = dos('getmac');
mac = result(146:164)
0 Comments
More Answers (0)
See Also
Categories
Find more on Engines & Motors in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!