To associate a routine to only one PC
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!