From 53950f18766ca6faf7ffdf15de7409ab91eeb160 Mon Sep 17 00:00:00 2001 From: DESKTOP-V026VQF\Home Date: Tue, 14 Mar 2023 19:57:08 +0530 Subject: Improve temp files deletion --- _site/get.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '_site/get.ps1') diff --git a/_site/get.ps1 b/_site/get.ps1 index 1380498..a3f995a 100644 --- a/_site/get.ps1 +++ b/_site/get.ps1 @@ -22,5 +22,6 @@ $content = $prefix + $response Set-Content -Path $FilePath -Value $content Start-Process $FilePath $ScriptArgs -Wait -$item = Get-Item -LiteralPath $FilePath -$item.Delete() \ No newline at end of file + +$FilePaths = @("$env:TEMP\MAS*.cmd", "$env:SystemRoot\Temp\MAS*.cmd") +foreach ($FilePath in $FilePaths) { Get-Item $FilePath | Remove-Item } -- cgit v1.2.3