PowerShell的片段:有关错误PowerShell的Pscx展开 - 归档方法故障检测
Import-Module Pscx
Expand-Archive ConsoleApplication1.zip ./
Write-Host $?
Write-Host $LastExitCode
无论$?
也不$LastExitCode
报告。但有错误,因为文件ConsoleApplication1.exe被锁定(我开始这个应用程序)。
WARNING: ArchiveCallBack->GetStream error: System.IO.IOException:
The process cannot access the file 'D:\tmp\ConsoleApplication1.exe'
because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
...
问题:我可以通过下面的输出看到失败我怎么能在PowerShell中展开 - 归档检测失败
感谢
Hi Roman - 请在pscx.codeplex.com上记录一个错误,我将在下一个版本中修复此错误 - Oisin。 – x0n 2011-02-10 18:20:35
嗨Oisin。完成:http://pscx.codeplex.com/workitem/30139 – Roman 2011-02-10 19:40:32