有谁知道,如何在资源管理器导航窗格中创建新条目,就在新的主页条目下方?
我已经编写了一个可以创建自定义条目的代码,并且已经尝试设置不同的SortOrderIndex值,但没有运气 - 我只实现了将自定义条目移动到 Home 上方,这不是我想要的。
:: Settings
SET CLSID={CUSTOM_CLSID}
SET ICON=%%USERPROFILE%%\Pictures\Icons\googledrive.ico,0
SET NAME=Google Drive
SET /A ORDER=65
SET STORAGE=%%USERPROFILE%%\Google Drive
:: Create Explorer entry
REG ADD "HKCU\Software\Classes\Wow6432Node\CLSID\%CLSID%" /ve /t REG_SZ /d "%NAME%" /f
REG ADD "HKCU\Software\Classes\Wow6432Node\CLSID\%CLSID%" /v "System.IsPinnedToNamespaceTree" /t REG_DWORD /d "1" /f
REG ADD "HKCU\Software\Classes\Wow6432Node\CLSID\%CLSID%" /v "SortOrderIndex" /t REG_DWORD /d "%ORDER%" /f
REG ADD "HKCU\Software\Classes\Wow6432Node\CLSID\%CLSID%\InProcServer32" /ve /t REG_EXPAND_SZ /d "%%SYSTEMROOT%%\system32\shell32.dll" /f
REG ADD "HKCU\Software\Classes\Wow6432Node\CLSID\%CLSID%\ShellFolder" /v "FolderValueFlags" /t REG_DWORD /d "40" /f
REG ADD "HKCU\Software\Classes\Wow6432Node\CLSID\%CLSID%\ShellFolder" /v "Attributes" /t REG_DWORD /d "4034920525" /f
REG ADD "HKCU\Software\Classes\CLSID\%CLSID%" /ve /t REG_SZ /d "%NAME%" /f
REG ADD "HKCU\Software\Classes\CLSID\%CLSID%" /v "System.IsPinnedToNamespaceTree" /t REG_DWORD /d "1" /f
REG ADD "HKCU\Software\Classes\CLSID\%CLSID%" /v "SortOrderIndex" /t REG_DWORD /d "%ORDER%" /f
REG ADD "HKCU\Software\Classes\CLSID\%CLSID%\InProcServer32" /ve /t REG_EXPAND_SZ /d "%%SYSTEMROOT%%\system32\shell32.dll" /f
REG ADD "HKCU\Software\Classes\CLSID\%CLSID%\ShellFolder" /v "FolderValueFlags" /t REG_DWORD /d "40" /f
REG ADD "HKCU\Software\Classes\CLSID\%CLSID%\ShellFolder" /v "Attributes" /t REG_DWORD /d "4034920525" /f
REG ADD "HKCU\Software\Classes\Wow6432Node\CLSID\%CLSID%\DefaultIcon" /ve /t REG_EXPAND_SZ /d "%ICON%" /f
REG ADD "HKCU\Software\Classes\Wow6432Node\CLSID\%CLSID%\Instance" /v "CLSID" /t REG_SZ /d "{0E5AAE11-A475-4c5b-AB00-C66DE400274E}" /f
REG ADD "HKCU\Software\Classes\Wow6432Node\CLSID\%CLSID%\Instance\InitPropertyBag" /v "Attributes" /t REG_DWORD /d "17" /f
REG ADD "HKCU\Software\Classes\CLSID\%CLSID%\DefaultIcon" /ve /t REG_EXPAND_SZ /d "%ICON%" /f
REG ADD "HKCU\Software\Classes\CLSID\%CLSID%\Instance" /v "CLSID" /t REG_SZ /d "{0E5AAE11-A475-4c5b-AB00-C66DE400274E}" /f
REG ADD "HKCU\Software\Classes\CLSID\%CLSID%\Instance\InitPropertyBag" /v "Attributes" /t REG_DWORD /d "17" /f
REG ADD "HKCU\Software\Classes\CLSID\%CLSID%\Instance\InitPropertyBag" /v "TargetFolderPath" /t REG_EXPAND_SZ /d "%STORAGE%" /f
REG ADD "HKCU\Software\Classes\Wow6432Node\CLSID\%CLSID%\Instance\InitPropertyBag" /v "TargetFolderPath" /t REG_EXPAND_SZ /d "%STORAGE%" /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "%CLSID%" /t REG_DWORD /d "1" /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\%CLSID%" /ve /t REG_SZ /d "%NAME%" /f
预期结果