used $PSScriptRoot instead

This commit is contained in:
dfinke
2022-07-13 09:50:02 -04:00
parent 724ed6b197
commit 0990c0ef09

View File

@@ -17,5 +17,5 @@ function Get-ConditionalFormatting {
}
}
$xlSourcefile = "$env:TEMP.\GetConditionalFormatting.xlsx"
$xlSourcefile = "$PSScriptRoot\GetConditionalFormatting.xlsx"
Get-ConditionalFormatting -xlSourcefile $xlSourcefile