restart spotify only when script invoked manually

This commit is contained in:
Mylloon 2024-01-23 10:32:35 +01:00
parent 9817b6eb75
commit 5a70caf64e
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -29,5 +29,13 @@ DEL %HOMEPATH%\Desktop\Spotify.lnk 2>NUL
ie4uinit -show
ECHO Suppression du raccourci du bureau
IF NOT "%1"=="yes" PAUSE
IF NOT "%1"=="yes" (
:: Restart Spotify
PowerShell -Command "" ^
"$dir = Join-Path -Path $env:APPDATA -ChildPath 'Spotify';" ^
"$exe = Join-Path -Path $spotifyDirectory -ChildPath 'Spotify.exe';" ^
"Start-Process -WorkingDirectory $dir -FilePath $exe"
PAUSE
)
EXIT /B