如何使用TCL语言取得计算机的网卡卡号?

liu_dxsxj 2017-06-28 10:15:42
想使用TCL语言写一段程序,取得计算机的网卡卡号,赋值给一个字符串
怎么实现?
有大神会吗?
...全文
829 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zxx4477 2019-09-14
  • 打赏
  • 举报
回复
set ip [exec ipconfig -all];
set rel [regexp -indices -inline -nocase -all {Physical Address. . . . . . . . . :} $ip];
set pycsr [string range $ip [lindex [lindex $rel 0] end]+2 [lindex [lindex $rel 0] end]+18];

3,423

社区成员

发帖
与我相关
我的任务
社区描述
其他开发语言 其他开发语言
社区管理员
  • 其他开发语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧