Windows 10 Navigation Pane with Visual Studio










0














I have a .bat script to add a custom folder to the file explorer navigation pane.

I can see the new extension, OneDrive and GDrive from Microsoft Word. and the default file explorer.

I can't see the new extension or GDrive from Microsoft Visual Studio, but I can see OneDrive and it's own repo folder.



So I think there's some settings in the programs what to show depends on the registry keys.
So I hope there's something key which is missing from the code. Which OneDrive has. :thinking:



:: Step 1: get the uids from here -> https://www.guidgen.com/

@set CLSID=82ca13c3-a60c-46fa-b805-fca6dc0cd75f
@set apperance_name=""
@set icon_path=""
@set folder_path=""

:: Step 1: Add your CLSID and name your extension
@reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

:: Step 2: Set the image for your icon
@reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%DefaultIcon /f /ve /t REG_EXPAND_SZ /d %icon_path% >nul 2>&1

:: Step 3: Add your extension to the Navigation Pane and make it visible
@reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v System.IsPinnedToNamespaceTree /t REG_DWORD /d 0x1 >nul 2>&1

:: Step 4: Set the location for your extension in the Navigation Pane
@reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v SortOrderIndex /t REG_DWORD /d 0x42 >nul 2>&1

:: Step 5: Provide the dll that hosts your extension.
@reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InProcServer32 /f /ve /t REG_EXPAND_SZ /d "%SystemRoot%system32shell32.dll" >nul 2>&1

:: Step 6: Define the instance object
@reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%Instance /f /v CLSID /t REG_SZ /d "0E5AAE11-A475-4c5b-AB00-C66DE400274E" >nul 2>&1

:: Step 7: Provide the file system attributes of the target folder
@reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v Attributes /t REG_DWORD /d 0x11 >nul 2>&1

:: Step 8: Set the path for the sync root
@reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v TargetFolderPath /t REG_EXPAND_SZ /d %folder_path% >nul 2>&1

:: Step 9: Set appropriate shell flags
@reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v FolderValueFlags /t REG_DWORD /d 0x28 >nul 2>&1

:: Step 10: Set the appropriate flags to control your shell behavior
@reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v Attributes /t REG_DWORD /d 0xF080004D >nul 2>&1

:: Step 11: Register your extension in the namespace root
@reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

:: Step 12: Hide your extension from the Desktop
@reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel /f /v %CLSID% /t REG_DWORD /d 0x1 >nul 2>&1









share|improve this question


























    0














    I have a .bat script to add a custom folder to the file explorer navigation pane.

    I can see the new extension, OneDrive and GDrive from Microsoft Word. and the default file explorer.

    I can't see the new extension or GDrive from Microsoft Visual Studio, but I can see OneDrive and it's own repo folder.



    So I think there's some settings in the programs what to show depends on the registry keys.
    So I hope there's something key which is missing from the code. Which OneDrive has. :thinking:



    :: Step 1: get the uids from here -> https://www.guidgen.com/

    @set CLSID=82ca13c3-a60c-46fa-b805-fca6dc0cd75f
    @set apperance_name=""
    @set icon_path=""
    @set folder_path=""

    :: Step 1: Add your CLSID and name your extension
    @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

    :: Step 2: Set the image for your icon
    @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%DefaultIcon /f /ve /t REG_EXPAND_SZ /d %icon_path% >nul 2>&1

    :: Step 3: Add your extension to the Navigation Pane and make it visible
    @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v System.IsPinnedToNamespaceTree /t REG_DWORD /d 0x1 >nul 2>&1

    :: Step 4: Set the location for your extension in the Navigation Pane
    @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v SortOrderIndex /t REG_DWORD /d 0x42 >nul 2>&1

    :: Step 5: Provide the dll that hosts your extension.
    @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InProcServer32 /f /ve /t REG_EXPAND_SZ /d "%SystemRoot%system32shell32.dll" >nul 2>&1

    :: Step 6: Define the instance object
    @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%Instance /f /v CLSID /t REG_SZ /d "0E5AAE11-A475-4c5b-AB00-C66DE400274E" >nul 2>&1

    :: Step 7: Provide the file system attributes of the target folder
    @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v Attributes /t REG_DWORD /d 0x11 >nul 2>&1

    :: Step 8: Set the path for the sync root
    @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v TargetFolderPath /t REG_EXPAND_SZ /d %folder_path% >nul 2>&1

    :: Step 9: Set appropriate shell flags
    @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v FolderValueFlags /t REG_DWORD /d 0x28 >nul 2>&1

    :: Step 10: Set the appropriate flags to control your shell behavior
    @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v Attributes /t REG_DWORD /d 0xF080004D >nul 2>&1

    :: Step 11: Register your extension in the namespace root
    @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

    :: Step 12: Hide your extension from the Desktop
    @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel /f /v %CLSID% /t REG_DWORD /d 0x1 >nul 2>&1









    share|improve this question
























      0












      0








      0







      I have a .bat script to add a custom folder to the file explorer navigation pane.

      I can see the new extension, OneDrive and GDrive from Microsoft Word. and the default file explorer.

      I can't see the new extension or GDrive from Microsoft Visual Studio, but I can see OneDrive and it's own repo folder.



      So I think there's some settings in the programs what to show depends on the registry keys.
      So I hope there's something key which is missing from the code. Which OneDrive has. :thinking:



      :: Step 1: get the uids from here -> https://www.guidgen.com/

      @set CLSID=82ca13c3-a60c-46fa-b805-fca6dc0cd75f
      @set apperance_name=""
      @set icon_path=""
      @set folder_path=""

      :: Step 1: Add your CLSID and name your extension
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

      :: Step 2: Set the image for your icon
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%DefaultIcon /f /ve /t REG_EXPAND_SZ /d %icon_path% >nul 2>&1

      :: Step 3: Add your extension to the Navigation Pane and make it visible
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v System.IsPinnedToNamespaceTree /t REG_DWORD /d 0x1 >nul 2>&1

      :: Step 4: Set the location for your extension in the Navigation Pane
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v SortOrderIndex /t REG_DWORD /d 0x42 >nul 2>&1

      :: Step 5: Provide the dll that hosts your extension.
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InProcServer32 /f /ve /t REG_EXPAND_SZ /d "%SystemRoot%system32shell32.dll" >nul 2>&1

      :: Step 6: Define the instance object
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%Instance /f /v CLSID /t REG_SZ /d "0E5AAE11-A475-4c5b-AB00-C66DE400274E" >nul 2>&1

      :: Step 7: Provide the file system attributes of the target folder
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v Attributes /t REG_DWORD /d 0x11 >nul 2>&1

      :: Step 8: Set the path for the sync root
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v TargetFolderPath /t REG_EXPAND_SZ /d %folder_path% >nul 2>&1

      :: Step 9: Set appropriate shell flags
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v FolderValueFlags /t REG_DWORD /d 0x28 >nul 2>&1

      :: Step 10: Set the appropriate flags to control your shell behavior
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v Attributes /t REG_DWORD /d 0xF080004D >nul 2>&1

      :: Step 11: Register your extension in the namespace root
      @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

      :: Step 12: Hide your extension from the Desktop
      @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel /f /v %CLSID% /t REG_DWORD /d 0x1 >nul 2>&1









      share|improve this question













      I have a .bat script to add a custom folder to the file explorer navigation pane.

      I can see the new extension, OneDrive and GDrive from Microsoft Word. and the default file explorer.

      I can't see the new extension or GDrive from Microsoft Visual Studio, but I can see OneDrive and it's own repo folder.



      So I think there's some settings in the programs what to show depends on the registry keys.
      So I hope there's something key which is missing from the code. Which OneDrive has. :thinking:



      :: Step 1: get the uids from here -> https://www.guidgen.com/

      @set CLSID=82ca13c3-a60c-46fa-b805-fca6dc0cd75f
      @set apperance_name=""
      @set icon_path=""
      @set folder_path=""

      :: Step 1: Add your CLSID and name your extension
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

      :: Step 2: Set the image for your icon
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%DefaultIcon /f /ve /t REG_EXPAND_SZ /d %icon_path% >nul 2>&1

      :: Step 3: Add your extension to the Navigation Pane and make it visible
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v System.IsPinnedToNamespaceTree /t REG_DWORD /d 0x1 >nul 2>&1

      :: Step 4: Set the location for your extension in the Navigation Pane
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v SortOrderIndex /t REG_DWORD /d 0x42 >nul 2>&1

      :: Step 5: Provide the dll that hosts your extension.
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InProcServer32 /f /ve /t REG_EXPAND_SZ /d "%SystemRoot%system32shell32.dll" >nul 2>&1

      :: Step 6: Define the instance object
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%Instance /f /v CLSID /t REG_SZ /d "0E5AAE11-A475-4c5b-AB00-C66DE400274E" >nul 2>&1

      :: Step 7: Provide the file system attributes of the target folder
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v Attributes /t REG_DWORD /d 0x11 >nul 2>&1

      :: Step 8: Set the path for the sync root
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v TargetFolderPath /t REG_EXPAND_SZ /d %folder_path% >nul 2>&1

      :: Step 9: Set appropriate shell flags
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v FolderValueFlags /t REG_DWORD /d 0x28 >nul 2>&1

      :: Step 10: Set the appropriate flags to control your shell behavior
      @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v Attributes /t REG_DWORD /d 0xF080004D >nul 2>&1

      :: Step 11: Register your extension in the namespace root
      @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

      :: Step 12: Hide your extension from the Desktop
      @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel /f /v %CLSID% /t REG_DWORD /d 0x1 >nul 2>&1






      windows registry






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 12 '18 at 20:08









      Szabolcs Mészáros

      206




      206






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Okay, I figured it out. This is the whole code for adding into the simple file explorer and to see in another program's file explorer.

          To see in a program's file explorer you need to add the same keys into HKEY_CLASSES_ROOTWOW6432NodeCLSID this.



          Watch out! You need to modify the second icon path, because that part can't see the C:Windows..etc folder.



          After that your cool and ready to go!



          :: Step 1: get the uids from here -> https://www.guidgen.com/

          :: HKEY_CURRENT_USERSoftwareClassesCLSID82ca13c3-a60c-46fa-b805-fca6dc0cd75f
          :: HKEY_CLASSES_ROOTWOW6432NodeCLSID82ca13c3-a60c-46fa-b805-fca6dc0cd75f

          @set CLSID=82ca13c3-a60c-46fa-b805-fca6dc0cd75f
          @set apperance_name=""
          @set icon_path=""
          @set icon_secondpath=""
          @set folder_path=""

          :: Step 1: Add your CLSID and name your extension
          @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

          :: Step 2: Set the image for your icon
          @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%DefaultIcon /f /ve /t REG_EXPAND_SZ /d %icon_path% >nul 2>&1

          :: Step 3: Add your extension to the Navigation Pane and make it visible
          @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v System.IsPinnedToNamespaceTree /t REG_DWORD /d 0x1 >nul 2>&1

          :: Step 4: Set the location for your extension in the Navigation Pane
          @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v SortOrderIndex /t REG_DWORD /d 0x42 >nul 2>&1

          :: Step 5: Provide the dll that hosts your extension.
          @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InProcServer32 /f /ve /t REG_EXPAND_SZ /d "%SystemRoot%system32shell32.dll" >nul 2>&1

          :: Step 6: Define the instance object
          @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%Instance /f /v CLSID /t REG_SZ /d "0E5AAE11-A475-4c5b-AB00-C66DE400274E" >nul 2>&1

          :: Step 7: Provide the file system attributes of the target folder
          @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v Attributes /t REG_DWORD /d 0x11 >nul 2>&1

          :: Step 8: Set the path for the sync root
          @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v TargetFolderPath /t REG_EXPAND_SZ /d %folder_path% >nul 2>&1

          :: Step 9: Set appropriate shell flags
          @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v FolderValueFlags /t REG_DWORD /d 0x28 >nul 2>&1

          :: Step 10: Set the appropriate flags to control your shell behavior
          @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v Attributes /t REG_DWORD /d 0xF080004D >nul 2>&1

          :: Step 11: Register your extension in the namespace root
          @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

          :: Step 12: Hide your extension from the Desktop
          @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel /f /v %CLSID% /t REG_DWORD /d 0x1 >nul 2>&1

          :: It will add a copy of it, so it will appear in programs file explorer like Microsoft Visual Studio

          @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

          :: You need to give a different path to this icon, because this part can't see the C:Windows...etc
          @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%DefaultIcon /f /ve /t REG_EXPAND_SZ /d %icon_secondpath% >nul 2>&1

          @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /v System.IsPinnedToNamespaceTree /t REG_DWORD /d 0x1 >nul 2>&1

          @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /v SortOrderIndex /t REG_DWORD /d 0x42 >nul 2>&1

          @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InProcServer32 /f /ve /t REG_EXPAND_SZ /d "%SystemRoot%system32shell32.dll" >nul 2>&1

          @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%Instance /f /v CLSID /t REG_SZ /d "0E5AAE11-A475-4c5b-AB00-C66DE400274E" >nul 2>&1

          @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InstanceInitPropertyBag /f /v Attributes /t REG_DWORD /d 0x11 >nul 2>&1

          @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InstanceInitPropertyBag /f /v TargetFolderPath /t REG_EXPAND_SZ /d %folder_path% >nul 2>&1

          @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%ShellFolder /f /v FolderValueFlags /t REG_DWORD /d 0x28 >nul 2>&1

          @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%ShellFolder /f /v Attributes /t REG_DWORD /d 0xF080004D >nul 2>&1





          share|improve this answer




















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53269360%2fwindows-10-navigation-pane-with-visual-studio%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Okay, I figured it out. This is the whole code for adding into the simple file explorer and to see in another program's file explorer.

            To see in a program's file explorer you need to add the same keys into HKEY_CLASSES_ROOTWOW6432NodeCLSID this.



            Watch out! You need to modify the second icon path, because that part can't see the C:Windows..etc folder.



            After that your cool and ready to go!



            :: Step 1: get the uids from here -> https://www.guidgen.com/

            :: HKEY_CURRENT_USERSoftwareClassesCLSID82ca13c3-a60c-46fa-b805-fca6dc0cd75f
            :: HKEY_CLASSES_ROOTWOW6432NodeCLSID82ca13c3-a60c-46fa-b805-fca6dc0cd75f

            @set CLSID=82ca13c3-a60c-46fa-b805-fca6dc0cd75f
            @set apperance_name=""
            @set icon_path=""
            @set icon_secondpath=""
            @set folder_path=""

            :: Step 1: Add your CLSID and name your extension
            @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

            :: Step 2: Set the image for your icon
            @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%DefaultIcon /f /ve /t REG_EXPAND_SZ /d %icon_path% >nul 2>&1

            :: Step 3: Add your extension to the Navigation Pane and make it visible
            @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v System.IsPinnedToNamespaceTree /t REG_DWORD /d 0x1 >nul 2>&1

            :: Step 4: Set the location for your extension in the Navigation Pane
            @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v SortOrderIndex /t REG_DWORD /d 0x42 >nul 2>&1

            :: Step 5: Provide the dll that hosts your extension.
            @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InProcServer32 /f /ve /t REG_EXPAND_SZ /d "%SystemRoot%system32shell32.dll" >nul 2>&1

            :: Step 6: Define the instance object
            @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%Instance /f /v CLSID /t REG_SZ /d "0E5AAE11-A475-4c5b-AB00-C66DE400274E" >nul 2>&1

            :: Step 7: Provide the file system attributes of the target folder
            @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v Attributes /t REG_DWORD /d 0x11 >nul 2>&1

            :: Step 8: Set the path for the sync root
            @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v TargetFolderPath /t REG_EXPAND_SZ /d %folder_path% >nul 2>&1

            :: Step 9: Set appropriate shell flags
            @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v FolderValueFlags /t REG_DWORD /d 0x28 >nul 2>&1

            :: Step 10: Set the appropriate flags to control your shell behavior
            @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v Attributes /t REG_DWORD /d 0xF080004D >nul 2>&1

            :: Step 11: Register your extension in the namespace root
            @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

            :: Step 12: Hide your extension from the Desktop
            @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel /f /v %CLSID% /t REG_DWORD /d 0x1 >nul 2>&1

            :: It will add a copy of it, so it will appear in programs file explorer like Microsoft Visual Studio

            @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

            :: You need to give a different path to this icon, because this part can't see the C:Windows...etc
            @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%DefaultIcon /f /ve /t REG_EXPAND_SZ /d %icon_secondpath% >nul 2>&1

            @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /v System.IsPinnedToNamespaceTree /t REG_DWORD /d 0x1 >nul 2>&1

            @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /v SortOrderIndex /t REG_DWORD /d 0x42 >nul 2>&1

            @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InProcServer32 /f /ve /t REG_EXPAND_SZ /d "%SystemRoot%system32shell32.dll" >nul 2>&1

            @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%Instance /f /v CLSID /t REG_SZ /d "0E5AAE11-A475-4c5b-AB00-C66DE400274E" >nul 2>&1

            @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InstanceInitPropertyBag /f /v Attributes /t REG_DWORD /d 0x11 >nul 2>&1

            @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InstanceInitPropertyBag /f /v TargetFolderPath /t REG_EXPAND_SZ /d %folder_path% >nul 2>&1

            @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%ShellFolder /f /v FolderValueFlags /t REG_DWORD /d 0x28 >nul 2>&1

            @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%ShellFolder /f /v Attributes /t REG_DWORD /d 0xF080004D >nul 2>&1





            share|improve this answer

























              0














              Okay, I figured it out. This is the whole code for adding into the simple file explorer and to see in another program's file explorer.

              To see in a program's file explorer you need to add the same keys into HKEY_CLASSES_ROOTWOW6432NodeCLSID this.



              Watch out! You need to modify the second icon path, because that part can't see the C:Windows..etc folder.



              After that your cool and ready to go!



              :: Step 1: get the uids from here -> https://www.guidgen.com/

              :: HKEY_CURRENT_USERSoftwareClassesCLSID82ca13c3-a60c-46fa-b805-fca6dc0cd75f
              :: HKEY_CLASSES_ROOTWOW6432NodeCLSID82ca13c3-a60c-46fa-b805-fca6dc0cd75f

              @set CLSID=82ca13c3-a60c-46fa-b805-fca6dc0cd75f
              @set apperance_name=""
              @set icon_path=""
              @set icon_secondpath=""
              @set folder_path=""

              :: Step 1: Add your CLSID and name your extension
              @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

              :: Step 2: Set the image for your icon
              @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%DefaultIcon /f /ve /t REG_EXPAND_SZ /d %icon_path% >nul 2>&1

              :: Step 3: Add your extension to the Navigation Pane and make it visible
              @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v System.IsPinnedToNamespaceTree /t REG_DWORD /d 0x1 >nul 2>&1

              :: Step 4: Set the location for your extension in the Navigation Pane
              @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v SortOrderIndex /t REG_DWORD /d 0x42 >nul 2>&1

              :: Step 5: Provide the dll that hosts your extension.
              @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InProcServer32 /f /ve /t REG_EXPAND_SZ /d "%SystemRoot%system32shell32.dll" >nul 2>&1

              :: Step 6: Define the instance object
              @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%Instance /f /v CLSID /t REG_SZ /d "0E5AAE11-A475-4c5b-AB00-C66DE400274E" >nul 2>&1

              :: Step 7: Provide the file system attributes of the target folder
              @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v Attributes /t REG_DWORD /d 0x11 >nul 2>&1

              :: Step 8: Set the path for the sync root
              @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v TargetFolderPath /t REG_EXPAND_SZ /d %folder_path% >nul 2>&1

              :: Step 9: Set appropriate shell flags
              @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v FolderValueFlags /t REG_DWORD /d 0x28 >nul 2>&1

              :: Step 10: Set the appropriate flags to control your shell behavior
              @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v Attributes /t REG_DWORD /d 0xF080004D >nul 2>&1

              :: Step 11: Register your extension in the namespace root
              @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

              :: Step 12: Hide your extension from the Desktop
              @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel /f /v %CLSID% /t REG_DWORD /d 0x1 >nul 2>&1

              :: It will add a copy of it, so it will appear in programs file explorer like Microsoft Visual Studio

              @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

              :: You need to give a different path to this icon, because this part can't see the C:Windows...etc
              @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%DefaultIcon /f /ve /t REG_EXPAND_SZ /d %icon_secondpath% >nul 2>&1

              @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /v System.IsPinnedToNamespaceTree /t REG_DWORD /d 0x1 >nul 2>&1

              @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /v SortOrderIndex /t REG_DWORD /d 0x42 >nul 2>&1

              @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InProcServer32 /f /ve /t REG_EXPAND_SZ /d "%SystemRoot%system32shell32.dll" >nul 2>&1

              @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%Instance /f /v CLSID /t REG_SZ /d "0E5AAE11-A475-4c5b-AB00-C66DE400274E" >nul 2>&1

              @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InstanceInitPropertyBag /f /v Attributes /t REG_DWORD /d 0x11 >nul 2>&1

              @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InstanceInitPropertyBag /f /v TargetFolderPath /t REG_EXPAND_SZ /d %folder_path% >nul 2>&1

              @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%ShellFolder /f /v FolderValueFlags /t REG_DWORD /d 0x28 >nul 2>&1

              @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%ShellFolder /f /v Attributes /t REG_DWORD /d 0xF080004D >nul 2>&1





              share|improve this answer























                0












                0








                0






                Okay, I figured it out. This is the whole code for adding into the simple file explorer and to see in another program's file explorer.

                To see in a program's file explorer you need to add the same keys into HKEY_CLASSES_ROOTWOW6432NodeCLSID this.



                Watch out! You need to modify the second icon path, because that part can't see the C:Windows..etc folder.



                After that your cool and ready to go!



                :: Step 1: get the uids from here -> https://www.guidgen.com/

                :: HKEY_CURRENT_USERSoftwareClassesCLSID82ca13c3-a60c-46fa-b805-fca6dc0cd75f
                :: HKEY_CLASSES_ROOTWOW6432NodeCLSID82ca13c3-a60c-46fa-b805-fca6dc0cd75f

                @set CLSID=82ca13c3-a60c-46fa-b805-fca6dc0cd75f
                @set apperance_name=""
                @set icon_path=""
                @set icon_secondpath=""
                @set folder_path=""

                :: Step 1: Add your CLSID and name your extension
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

                :: Step 2: Set the image for your icon
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%DefaultIcon /f /ve /t REG_EXPAND_SZ /d %icon_path% >nul 2>&1

                :: Step 3: Add your extension to the Navigation Pane and make it visible
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v System.IsPinnedToNamespaceTree /t REG_DWORD /d 0x1 >nul 2>&1

                :: Step 4: Set the location for your extension in the Navigation Pane
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v SortOrderIndex /t REG_DWORD /d 0x42 >nul 2>&1

                :: Step 5: Provide the dll that hosts your extension.
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InProcServer32 /f /ve /t REG_EXPAND_SZ /d "%SystemRoot%system32shell32.dll" >nul 2>&1

                :: Step 6: Define the instance object
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%Instance /f /v CLSID /t REG_SZ /d "0E5AAE11-A475-4c5b-AB00-C66DE400274E" >nul 2>&1

                :: Step 7: Provide the file system attributes of the target folder
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v Attributes /t REG_DWORD /d 0x11 >nul 2>&1

                :: Step 8: Set the path for the sync root
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v TargetFolderPath /t REG_EXPAND_SZ /d %folder_path% >nul 2>&1

                :: Step 9: Set appropriate shell flags
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v FolderValueFlags /t REG_DWORD /d 0x28 >nul 2>&1

                :: Step 10: Set the appropriate flags to control your shell behavior
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v Attributes /t REG_DWORD /d 0xF080004D >nul 2>&1

                :: Step 11: Register your extension in the namespace root
                @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

                :: Step 12: Hide your extension from the Desktop
                @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel /f /v %CLSID% /t REG_DWORD /d 0x1 >nul 2>&1

                :: It will add a copy of it, so it will appear in programs file explorer like Microsoft Visual Studio

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

                :: You need to give a different path to this icon, because this part can't see the C:Windows...etc
                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%DefaultIcon /f /ve /t REG_EXPAND_SZ /d %icon_secondpath% >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /v System.IsPinnedToNamespaceTree /t REG_DWORD /d 0x1 >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /v SortOrderIndex /t REG_DWORD /d 0x42 >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InProcServer32 /f /ve /t REG_EXPAND_SZ /d "%SystemRoot%system32shell32.dll" >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%Instance /f /v CLSID /t REG_SZ /d "0E5AAE11-A475-4c5b-AB00-C66DE400274E" >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InstanceInitPropertyBag /f /v Attributes /t REG_DWORD /d 0x11 >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InstanceInitPropertyBag /f /v TargetFolderPath /t REG_EXPAND_SZ /d %folder_path% >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%ShellFolder /f /v FolderValueFlags /t REG_DWORD /d 0x28 >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%ShellFolder /f /v Attributes /t REG_DWORD /d 0xF080004D >nul 2>&1





                share|improve this answer












                Okay, I figured it out. This is the whole code for adding into the simple file explorer and to see in another program's file explorer.

                To see in a program's file explorer you need to add the same keys into HKEY_CLASSES_ROOTWOW6432NodeCLSID this.



                Watch out! You need to modify the second icon path, because that part can't see the C:Windows..etc folder.



                After that your cool and ready to go!



                :: Step 1: get the uids from here -> https://www.guidgen.com/

                :: HKEY_CURRENT_USERSoftwareClassesCLSID82ca13c3-a60c-46fa-b805-fca6dc0cd75f
                :: HKEY_CLASSES_ROOTWOW6432NodeCLSID82ca13c3-a60c-46fa-b805-fca6dc0cd75f

                @set CLSID=82ca13c3-a60c-46fa-b805-fca6dc0cd75f
                @set apperance_name=""
                @set icon_path=""
                @set icon_secondpath=""
                @set folder_path=""

                :: Step 1: Add your CLSID and name your extension
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

                :: Step 2: Set the image for your icon
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%DefaultIcon /f /ve /t REG_EXPAND_SZ /d %icon_path% >nul 2>&1

                :: Step 3: Add your extension to the Navigation Pane and make it visible
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v System.IsPinnedToNamespaceTree /t REG_DWORD /d 0x1 >nul 2>&1

                :: Step 4: Set the location for your extension in the Navigation Pane
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID% /f /v SortOrderIndex /t REG_DWORD /d 0x42 >nul 2>&1

                :: Step 5: Provide the dll that hosts your extension.
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InProcServer32 /f /ve /t REG_EXPAND_SZ /d "%SystemRoot%system32shell32.dll" >nul 2>&1

                :: Step 6: Define the instance object
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%Instance /f /v CLSID /t REG_SZ /d "0E5AAE11-A475-4c5b-AB00-C66DE400274E" >nul 2>&1

                :: Step 7: Provide the file system attributes of the target folder
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v Attributes /t REG_DWORD /d 0x11 >nul 2>&1

                :: Step 8: Set the path for the sync root
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%InstanceInitPropertyBag /f /v TargetFolderPath /t REG_EXPAND_SZ /d %folder_path% >nul 2>&1

                :: Step 9: Set appropriate shell flags
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v FolderValueFlags /t REG_DWORD /d 0x28 >nul 2>&1

                :: Step 10: Set the appropriate flags to control your shell behavior
                @reg add HKEY_CURRENT_USERSoftwareClassesCLSID%CLSID%ShellFolder /f /v Attributes /t REG_DWORD /d 0xF080004D >nul 2>&1

                :: Step 11: Register your extension in the namespace root
                @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

                :: Step 12: Hide your extension from the Desktop
                @reg add HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel /f /v %CLSID% /t REG_DWORD /d 0x1 >nul 2>&1

                :: It will add a copy of it, so it will appear in programs file explorer like Microsoft Visual Studio

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /ve /t REG_SZ /d %apperance_name% >nul 2>&1

                :: You need to give a different path to this icon, because this part can't see the C:Windows...etc
                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%DefaultIcon /f /ve /t REG_EXPAND_SZ /d %icon_secondpath% >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /v System.IsPinnedToNamespaceTree /t REG_DWORD /d 0x1 >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID% /f /v SortOrderIndex /t REG_DWORD /d 0x42 >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InProcServer32 /f /ve /t REG_EXPAND_SZ /d "%SystemRoot%system32shell32.dll" >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%Instance /f /v CLSID /t REG_SZ /d "0E5AAE11-A475-4c5b-AB00-C66DE400274E" >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InstanceInitPropertyBag /f /v Attributes /t REG_DWORD /d 0x11 >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%InstanceInitPropertyBag /f /v TargetFolderPath /t REG_EXPAND_SZ /d %folder_path% >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%ShellFolder /f /v FolderValueFlags /t REG_DWORD /d 0x28 >nul 2>&1

                @reg add HKEY_CLASSES_ROOTWOW6432NodeCLSID%CLSID%ShellFolder /f /v Attributes /t REG_DWORD /d 0xF080004D >nul 2>&1






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 12 '18 at 21:49









                Szabolcs Mészáros

                206




                206



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53269360%2fwindows-10-navigation-pane-with-visual-studio%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    這個網誌中的熱門文章

                    How to read a connectionString WITH PROVIDER in .NET Core?

                    Node.js Script on GitHub Pages or Amazon S3

                    Museum of Modern and Contemporary Art of Trento and Rovereto