From 03ae00fd77a86a9d356e1d6b7e69f6a6dbb80ae6 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Thu, 28 Apr 2022 22:24:26 +0530 Subject: [PATCH] Download location to desktop --- get-mas.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get-mas.ps1 b/get-mas.ps1 index ebc051a..47763bb 100644 --- a/get-mas.ps1 +++ b/get-mas.ps1 @@ -8,8 +8,8 @@ function Exit-Script { ) process { - if (Test-Path -Path "$env:TEMP\MAS.cmd") { - Remove-Item -Path "$env:TEMP\MAS.cmd" -Force + if (Test-Path -Path "$env:USERPROFILE\Desktop\MAS.cmd") { + Remove-Item -Path "$env:USERPROFILE\Desktop\MAS.cmd" -Force } exit $ExitCode