Community
    • 登入

    File-Open dialog not showing all files/folders

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    4 貼文 3 Posters 2.3k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Brian PhillipsB
      Brian Phillips
      最後由 編輯

      I was trying to open the “hosts” file in a Windows 10 (64-bit) machine, which is located at C:\Windows\System32\Drivers\Etc\hosts, and the file-open dialog won’t let me navigate there, because it’s not showing the folders I need to click my way to it. I can get to C:\Windows\System32\Drivers, but at that point it just displays two directories and six files, and there are, in actuality, six folders (one of which is “etc”) and 435 files there. The search file type is “all files .”. There is a screenshot here:

      https://www.dropbox.com/s/bjmkvqji9onogmp/notepad.jpg?dl=0

      And now that I’m looking at it more closely, the “modified” dates don’t even match. These are absolutely the same directory; I copied the path from Explorer and pasted it in to Notepad++'s file-open dialog. What’s going on?

      Scott SumnerS 1 條回覆 最後回覆 回覆 引用 1
      • Scott SumnerS
        Scott Sumner @Brian Phillips
        最後由 編輯

        @Brian-Phillips

        Couldn’t see your screenshot as I’m currently being protected from the “evil” Dropbox…but maybe the File System Redirector is the culprit here?

        1 條回覆 最後回覆 回覆 引用 2
        • Brian PhillipsB
          Brian Phillips
          最後由 Brian Phillips 編輯

          You got it in one.

          What makes it all the more confusing is that, if you pull down the “Look in” drop down from NPP file open dialog, it shows that you are viewing

          C:->Windows->System32->Drivers

          when, in reality, what it is showing you is

          C:->Windows->SYSWOW64->Drivers.

          So, the only way to open the hosts file (which only resides in \Windows\System32\Drivers\Etc), is to go there via explorer and use the context menu to open it with NPP? Or to type out the full and complete path to it in the file open dialog? There is to NPP GUI way to do it?

          Seems odd.

          1 條回覆 最後回覆 回覆 引用 2
          • PeterJonesP
            PeterJones
            最後由 編輯

            @Brian-Phillips,

            As it says on the File System Redirector page that ++@Scott-Sumner linked, “32-bit applications can access the native system directory by substituting %windir%\Sysnative”, so if you are using 32-bit Notepad++, and want to edit a file in the OS’s 64-bit system32\Drivers directory, you can browse to %windir%\Sysnative\Drivers or c:\windows\sysnative\Drivers (you can paste that in the File name box, or in the path-box at the top, if you’ve got that displayed), and it will be the files you expected.

            1 條回覆 最後回覆 回覆 引用 1
            • 第一個貼文
              最後的貼文
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors