We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows脚本中获取ip的方式,是通过ipconfig获取的,当电脑有多个网卡的时候就不能准确获取ip,可以通过路由表的方式获取测下来算是比较准确的,如下:
$ip = ((route print |findstr "0.0.0.0.*0.0.0.0") -replace "\s{2,}", " ").split()[4]
The text was updated successfully, but these errors were encountered:
是的是的,学习了,非常感谢~
Sorry, something went wrong.
No branches or pull requests
windows脚本中获取ip的方式,是通过ipconfig获取的,当电脑有多个网卡的时候就不能准确获取ip,可以通过路由表的方式获取测下来算是比较准确的,如下:
$ip = ((route print |findstr "0.0.0.0.*0.0.0.0") -replace "\s{2,}", " ").split()[4]
The text was updated successfully, but these errors were encountered: