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