mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-01-07 11:03:31 +00:00
Merge pull request #4 from josheinstein/master
Export-Excel now resolves unresolved pspaths.
This commit is contained in:
@@ -62,6 +62,8 @@ function Export-Excel {
|
||||
|
||||
Begin {
|
||||
|
||||
$Path = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($Path)
|
||||
|
||||
if(Test-Path $Path) {
|
||||
if($Force) {
|
||||
Remove-Item $Path
|
||||
|
||||
Reference in New Issue
Block a user