Permanent shortcut path for discord launching
Since discord is constantly updating itself, whenever a new version got pushed the startup shortcut I put on my desktop/start menu etc breaks for invalid path, and I have to manually update them.
Is there any possibility to have a fixed path like you launch discord through a launcher lnk or just don't change the \AppData\Local\Discord\app-1.0.9xxx path?
-
New Method:
Paste this code in a .bat file and it'll be your shortcut.
@echo off
cd %localappdata%
for /f "delims=" %%i in ('dir /b /ad-h /o-n "Discord\app-*"') do (
cd "Discord\%%i"
start Discord.exe
exit
)----------------------------------------------------------------------------------------------------------------
Old Method:
cd Discord
cd app-*
start Discord.exeand keep it in %localappdata% or Appdata\local
Now you can create it's shortcut to keep on desktop,That's it!
(you may change it's icon to better match it to your liking)------------- Continue if you want to pin the shortcut to start menu -------------
create a .reg file and paste this:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\PintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"Run it to add "Pin to start" in the right-click menu for almost all Shortcuts
0 -
Tohka you don't need to do any of that. You can just create a shortcut to this path:
%localappdata%\Discord\Update.exe --processStart Discord.exe
It's how discord does it when you install it. It will always launch whichever version you have.
1 -
@Amy
Yes, I agree with you. My solution is way more work, but the thing is, I have tried running Discord from update.exe, but I don't know why it didn't work, and I thought maybe it won't work for some others either. So...0 -
Brilliant workarounds. Wonder if discord would include them in the future for users like me who wants to manually launch the apps.
0
Yorum yazmak için lütfen oturum açın.
Yorumlar
4 yorum