mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-14 23:33:18 +00:00
Resolve the path with ProviderPath for UNC
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user