- copy 嚣张.mscz tmp.zip
- $f=gi tmp.zip
- $shell=New-Object -com shell.application
- $z=$shell.NameSpace($f.fullname)
- foreach($i in $z.items()){if($i.name -match 'mscx'){$n=$i.name;$shell.Namespace("$pwd").CopyHere($i);if((gc $n) -match '<text>A</text>'){'ok'};del tmp.zip, $n}}
复制代码
|