回复 12# flashercs
哥哥 你啥意思? 还好我用的备份文件测试 你这玩意直接把文件清空了 很是牛-逼 啊- New-Object : 找不到“StreamReader”的重载,参数计数为:“5”。
- 所在位置 行:21 字符: 21
- + $sr = New-Object <<<< System.IO.StreamReader -ArgumentList @($filestream
- , $iso88591, $false, 64000, $true)
- + CategoryInfo : InvalidOperation: (:) [New-Object], MethodExcept
- ion
- + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.Power
- Shell.Commands.NewObjectCommand
-
- 不能对值为空的表达式调用方法。
- 所在位置 行:23 字符: 25
- + $str = $sr.ReadToEnd <<<< ().Replace($oldstr, $newstr)
- + CategoryInfo : InvalidOperation: (ReadToEnd:String) [], Runtime
- Exception
- + FullyQualifiedErrorId : InvokeMethodOnNull
-
- 不能对值为空的表达式调用方法。
- 所在位置 行:27 字符: 16
- + $sr.Dispose <<<< ()
- + CategoryInfo : InvalidOperation: (Dispose:String) [], RuntimeEx
- ception
- + FullyQualifiedErrorId : InvokeMethodOnNull
-
- New-Object : 找不到“StreamReader”的重载,参数计数为:“5”。
- 所在位置 行:21 字符: 21
- + $sr = New-Object <<<< System.IO.StreamReader -ArgumentList @($filestream
- , $iso88591, $false, 64000, $true)
- + CategoryInfo : InvalidOperation: (:) [New-Object], MethodExcept
- ion
- + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.Power
- Shell.Commands.NewObjectCommand
-
- 不能对值为空的表达式调用方法。
- 所在位置 行:23 字符: 25
- + $str = $sr.ReadToEnd <<<< ().Replace($oldstr, $newstr)
- + CategoryInfo : InvalidOperation: (ReadToEnd:String) [], Runtime
- Exception
- + FullyQualifiedErrorId : InvokeMethodOnNull
-
- 不能对值为空的表达式调用方法。
- 所在位置 行:27 字符: 16
- + $sr.Dispose <<<< ()
- + CategoryInfo : InvalidOperation: (Dispose:String) [], RuntimeEx
- ception
- + FullyQualifiedErrorId : InvokeMethodOnNull
-
- 请按任意键继续. . .
复制代码
|