add shortcut to long game names
This commit is contained in:
parent
78b1fc6177
commit
623b8b241b
1 changed files with 4 additions and 3 deletions
|
@ -5,12 +5,13 @@ SET "collapse=%ProgramFiles%\Collapse Launcher"
|
||||||
SET "exe=CollapseLauncher.exe"
|
SET "exe=CollapseLauncher.exe"
|
||||||
FOR /F "usebackq delims=" %%i IN (`dir /B /S "!collapse!\app-*"`) DO SET "vbc=%%i"
|
FOR /F "usebackq delims=" %%i IN (`dir /B /S "!collapse!\app-*"`) DO SET "vbc=%%i"
|
||||||
SET "iconpath=Assets\Images\GameIcon"
|
SET "iconpath=Assets\Images\GameIcon"
|
||||||
|
SET "shortcutpath=%APPDATA%\Microsoft\Windows\Start Menu\Programs"
|
||||||
|
|
||||||
:: Genshin shortcut
|
:: Genshin shortcut
|
||||||
ECHO Genshin shortcut creation...
|
ECHO Genshin shortcut creation...
|
||||||
PowerShell -Command "" ^
|
PowerShell -Command "" ^
|
||||||
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
||||||
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Genshin Impact.lnk');" ^
|
"$Shortcut = $WshShell.CreateShortcut('!shortcutpath!\Genshin Impact.lnk');" ^
|
||||||
"$Shortcut.TargetPath = '!collapse!\!exe!';" ^
|
"$Shortcut.TargetPath = '!collapse!\!exe!';" ^
|
||||||
"$Shortcut.Arguments = 'open --game 1 --region 0 --play';" ^
|
"$Shortcut.Arguments = 'open --game 1 --region 0 --play';" ^
|
||||||
"$Shortcut.IconLocation = '!vbc!\!iconpath!\icon-genshin.ico';" ^
|
"$Shortcut.IconLocation = '!vbc!\!iconpath!\icon-genshin.ico';" ^
|
||||||
|
@ -20,7 +21,7 @@ PowerShell -Command "" ^
|
||||||
ECHO Honkai shortcut creation...
|
ECHO Honkai shortcut creation...
|
||||||
PowerShell -Command "" ^
|
PowerShell -Command "" ^
|
||||||
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
||||||
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Honkai Star Rail.lnk');" ^
|
"$Shortcut = $WshShell.CreateShortcut('!shortcutpath!\Honkai Star Rail - HSR.lnk');" ^
|
||||||
"$Shortcut.TargetPath = '!collapse!\!exe!';" ^
|
"$Shortcut.TargetPath = '!collapse!\!exe!';" ^
|
||||||
"$Shortcut.Arguments = 'open --game 2 --region 0 --play';" ^
|
"$Shortcut.Arguments = 'open --game 2 --region 0 --play';" ^
|
||||||
"$Shortcut.IconLocation = '!vbc!\!iconpath!\icon-starrail.ico';" ^
|
"$Shortcut.IconLocation = '!vbc!\!iconpath!\icon-starrail.ico';" ^
|
||||||
|
@ -30,7 +31,7 @@ PowerShell -Command "" ^
|
||||||
ECHO ZZZ shortcut creation...
|
ECHO ZZZ shortcut creation...
|
||||||
PowerShell -Command "" ^
|
PowerShell -Command "" ^
|
||||||
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
||||||
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\Zenless Zone Zero.lnk');" ^
|
"$Shortcut = $WshShell.CreateShortcut('!shortcutpath!\Zenless Zone Zero - ZZZ.lnk');" ^
|
||||||
"$Shortcut.TargetPath = '!collapse!\!exe!';" ^
|
"$Shortcut.TargetPath = '!collapse!\!exe!';" ^
|
||||||
"$Shortcut.Arguments = 'open --game 3 --region 0 --play';" ^
|
"$Shortcut.Arguments = 'open --game 3 --region 0 --play';" ^
|
||||||
"$Shortcut.IconLocation = '!vbc!\!iconpath!\icon-zenless.ico';" ^
|
"$Shortcut.IconLocation = '!vbc!\!iconpath!\icon-zenless.ico';" ^
|
||||||
|
|
Loading…
Reference in a new issue