$strPattern="软件版本"
$text=net config workstation
switch -Regex ($text)
{
$strPattern {Write-Host $switch.current}
}
原文链接:https://www.f2er.com/regex/360417.html$strPattern="软件版本"
$text=net config workstation
switch -Regex ($text)
{
$strPattern {Write-Host $switch.current}
}
原文链接:https://www.f2er.com/regex/360417.html