- 帖子
- 3
- 积分
- 14
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2022-3-27
|
本帖最后由 xftvwuchao 于 2022-8-13 10:12 编辑
回复 8# WHY
PowerShell "[string](ipconfig /all) -match '(?<=DNS 服务器).*?((?:\d+\.){3}\d+) *((?:\d+\.){3}\d+)'|%%{$matches[1]}"
PowerShell "[string](ipconfig /all) -match '(?!DNS 服务器).*?((?:\d+\.){3}\d+) *((?:\d+\.){3}\d+)'|%%{$matches[2]}"
首选DNS:223.6.6.6
备用DNS:223.6.6.6
我把它分成两行了
怎么让结果这样显示 大神 |
|