From 15509e8ddc6b8fc3a392b336a38b1ebb23dbb583 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Thu, 28 Apr 2022 22:30:09 +0530 Subject: Revert back --- get-mas.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get-mas.ps1 b/get-mas.ps1 index 47763bb..ebc051a 100644 --- a/get-mas.ps1 +++ b/get-mas.ps1 @@ -8,8 +8,8 @@ function Exit-Script { ) process { - if (Test-Path -Path "$env:USERPROFILE\Desktop\MAS.cmd") { - Remove-Item -Path "$env:USERPROFILE\Desktop\MAS.cmd" -Force + if (Test-Path -Path "$env:TEMP\MAS.cmd") { + Remove-Item -Path "$env:TEMP\MAS.cmd" -Force } exit $ExitCode -- cgit v1.2.3