Resolve the path with ProviderPath for UNC

This commit is contained in:
dfinke
2016-07-01 15:55:15 -04:00
parent 3c5020f137
commit 1d897286b7

View File

@@ -49,7 +49,7 @@ function Import-Excel {
Process { Process {
$Path = (Resolve-Path $Path).Path $Path = (Resolve-Path $Path).ProviderPath
write-debug "target excel file $Path" write-debug "target excel file $Path"
$stream = New-Object -TypeName System.IO.FileStream -ArgumentList $Path,"Open","Read","ReadWrite" $stream = New-Object -TypeName System.IO.FileStream -ArgumentList $Path,"Open","Read","ReadWrite"