function pingm ($file)
{ $ips = gc $file foreach ($ip in $ips) { $cmdline +="ping " + $ip + " -n 1" + "`n" } return $cmdline}$m = pingm e:\ips.txt$miex $m本文共 214 字,大约阅读时间需要 1 分钟。
function pingm ($file)
{ $ips = gc $file foreach ($ip in $ips) { $cmdline +="ping " + $ip + " -n 1" + "`n" } return $cmdline}$m = pingm e:\ips.txt$miex $m转载于:https://www.cnblogs.com/dreamer-fish/p/3452503.html