diff --git a/windows/blockthespot.bat b/windows/blockthespot.bat index f14f434..5b8562c 100644 --- a/windows/blockthespot.bat +++ b/windows/blockthespot.bat @@ -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