fix save file path
This commit is contained in:
@@ -1378,12 +1378,12 @@ $script
|
|||||||
|
|
||||||
$ext = [IO.Path]::GetExtension($OutputFile).ToLower()
|
$ext = [IO.Path]::GetExtension($OutputFile).ToLower()
|
||||||
if ($ext -eq '.json') {
|
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 {
|
} 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
|
# Open the folder containing the file
|
||||||
Start-Process explorer.exe /select,"$filePath"
|
Start-Process explorer.exe /select,"$filePath"
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user