To associate a routine to only one PC

1 回表示 (過去 30 日間)
Mauro Colombano
Mauro Colombano 2020 年 9 月 24 日
コメント済み: Star Strider 2020 年 9 月 24 日
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

採用された回答

Star Strider
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 件のコメント
Mauro Colombano
Mauro Colombano 2020 年 9 月 24 日
As I did, thanks!
When I'll have checked with my colleagues wether it works, I will accept the answer
Best Regards!
Star Strider
Star Strider 2020 年 9 月 24 日
My pleasure!
Thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by