diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index 14821d5..f7bfa34 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -1378,12 +1378,12 @@ $script $ext = [IO.Path]::GetExtension($OutputFile).ToLower() if ($ext -eq '.json') { - $sites | ConvertTo-Json -Depth 3 | Out-File -FilePath $OutputFile -Encoding UTF8 + $sites | ConvertTo-Json -Depth 3 | Out-File -FilePath $filePath -Encoding UTF8 } else { - $sites | Export-Csv -Path $OutputFile -NoTypeInformation -Encoding UTF8 + $sites | Export-Csv -Path $filePath -NoTypeInformation -Encoding UTF8 } - Write-LogHybrid "Wrote $($sites.Count) sites to $OutputFile" Success DattoAuth + Write-LogHybrid "Wrote $($sites.Count) sites to $filePath" Success DattoAuth # Open the folder containing the file Start-Process explorer.exe /select,"$filePath" } else {