From 70aba4acb4eccb5f98a0d56798f3ce4293a371a4 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Mon, 30 Jun 2025 00:12:03 -0400 Subject: [PATCH] Update StackMonkey.ps1 --- StackMonkey.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index f7bfa34..a6e574e 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -1378,14 +1378,16 @@ $script $ext = [IO.Path]::GetExtension($OutputFile).ToLower() if ($ext -eq '.json') { + # Save the file to the desktop using the full path $sites | ConvertTo-Json -Depth 3 | Out-File -FilePath $filePath -Encoding UTF8 } else { + # Save the file to the desktop using the full path $sites | Export-Csv -Path $filePath -NoTypeInformation -Encoding UTF8 } Write-LogHybrid "Wrote $($sites.Count) sites to $filePath" Success DattoAuth # Open the folder containing the file - Start-Process explorer.exe /select,"$filePath" + Start-Process explorer.exe /select,"$desktopPath" } else { # If SaveSitesOnly is not true, just fetch sites (for UI purposes or silent mode without saving) Write-LogHybrid "Sites fetched successfully, but not saved." Success DattoAuth