Created
March 7, 2020 15:57
Star
You must be signed in to star a gist
Creates a side panel entry for windows explorer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: GUIDs were randomly generated using the command ``python3 -c "import uuid; print(str(uuid.uuid4()).upper())"`` | |
set guid=C3AA96DB-679A-4D75-B53F-F9EBDFEBE6C3 | |
set name=Seafile | |
set folder=%%userprofile%%\Seafile | |
set icon=%%programfiles(x86)%%\Seafile\bin\seafile-applet.exe,-2 | |
:: set guid=92EB2F95-3564-4430-8022-4CAF93AB8D96 | |
:: set name=Sync | |
:: set folder=%%userprofile%%\Sync | |
:: :: set icon=%%programfiles(x86)%%\Sync\sync-taskbar.exe | |
:: set icon=%%userprofile%%\AppData\Local\Programs\Sync\sync-taskbar.exe | |
:: set guid=31EF0692-2FBE-4285-90DB-CAAA7D57303C | |
:: set name=Syncthing | |
:: set folder=%%userprofile%%\Syncthing | |
:: set icon=%%programfiles%%\SyncTrayzor\default.ico | |
reg add HKCU\Software\Classes\CLSID\{%guid%} /ve /t REG_SZ /d "%name%" /f | |
reg add HKCU\Software\Classes\CLSID\{%guid%}\DefaultIcon /ve /t REG_EXPAND_SZ /d "%icon%" /f | |
reg add HKCU\Software\Classes\CLSID\{%guid%} /v System.IsPinnedToNameSpaceTree /t REG_DWORD /d 0x1 /f | |
reg add HKCU\Software\Classes\CLSID\{%guid%} /v SortOrderIndex /t REG_DWORD /d 0x42 /f | |
reg add HKCU\Software\Classes\CLSID\{%guid%}\InProcServer32 /ve /t REG_EXPAND_SZ /d %%systemroot%%\system32\shell32.dll /f | |
reg add HKCU\Software\Classes\CLSID\{%guid%}\Instance /v CLSID /t REG_SZ /d {0E5AAE11-A475-4c5b-AB00-C66DE400274E} /f | |
reg add HKCU\Software\Classes\CLSID\{%guid%}\Instance\InitPropertyBag /v Attributes /t REG_DWORD /d 0x11 /f | |
reg add HKCU\Software\Classes\CLSID\{%guid%}\Instance\InitPropertyBag /v TargetFolderPath /t REG_EXPAND_SZ /d "%folder%" /f | |
reg add HKCU\Software\Classes\CLSID\{%guid%}\ShellFolder /v FolderValueFlags /t REG_DWORD /d 0x28 /f | |
reg add HKCU\Software\Classes\CLSID\{%guid%}\ShellFolder /v Attributes /t REG_DWORD /d 0xF080004D /f | |
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{%guid%} /ve /t REG_SZ /d "%name%" /f | |
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {%guid%} /t REG_DWORD /d 0x1 /f | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works flawlessly (at least on Win 10 as of time of writing), used it to get a GoogleDrive entry so it neatly shows up with onedrive and dropbox.