mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-15 07:43:23 +00:00
Resolve the path with ProviderPath for UNC
This commit is contained in:
@@ -49,7 +49,7 @@ function Import-Excel {
|
||||
|
||||
Process {
|
||||
|
||||
$Path = (Resolve-Path $Path).Path
|
||||
$Path = (Resolve-Path $Path).ProviderPath
|
||||
write-debug "target excel file $Path"
|
||||
|
||||
$stream = New-Object -TypeName System.IO.FileStream -ArgumentList $Path,"Open","Read","ReadWrite"
|
||||
|
||||
Reference in New Issue
Block a user