restart spotify only when script invoked manually
This commit is contained in:
parent
9817b6eb75
commit
5a70caf64e
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue