From b6b03cfca424e478c10ece1cd06305d7ce1444f1 Mon Sep 17 00:00:00 2001 From: josheinstein Date: Wed, 8 Apr 2015 16:22:34 -0400 Subject: [PATCH] Export-Excel now resolves unresolved pspaths. --- ImportExcel.psm1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ImportExcel.psm1 b/ImportExcel.psm1 index d1f1f5c..2a4b12f 100644 --- a/ImportExcel.psm1 +++ b/ImportExcel.psm1 @@ -62,6 +62,8 @@ function Export-Excel { Begin { + $Path = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($Path) + if(Test-Path $Path) { if($Force) { Remove-Item $Path