Community
    • Login

    How to edit the C:\Windows\System32\drivers\etc\hosts file?

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 3 Posters 11.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Yozi GPY Offline
      Yozi GP
      last edited by

      I am looking for a 64 bit version, because the C:\Windows\System32\drivers\etc folder is hidden from the 32 bit programs (I would like to edit the hosts file). I can do it with 64 bit version of other editors, but I would like to use a single notepad replacement for everything. I have seen a previous topic about the 64 bit version of Notepad++, but the topic is locked, I could not add this point of view there.

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Yozi GP
        last edited by

        @Yozi-GP, when it comes to file system redirection there are two possible ways to do this, afaik.
        a) either use sysnative alias to force a program to open the file or
        b) create a link.

        The strange thing about your issue is, that, afaik, the hosts is one of a couple of files which shouldn’t be affected by redirection.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • Yozi GPY Offline
          Yozi GP
          last edited by

          @Claudia-Frank, thanks for the tip, it helped! The hosts file is really available in the folder C:\Windows\Sysnative\drivers\etc for 32 bit programs.

          1 Reply Last reply Reply Quote 0
          • Eric WilliamsE Offline
            Eric Williams
            last edited by

            Depending on your OS version (not bit) you can open any file in NotePad++, I just browse out to C:\Windows\System32\drivers then in the address bar add this\etc and the host file is shown. no need for links or items.

            I am on Windows 10 64bit and this also worked on 8/8.1 and 7 all 64bit.

            Claudia FrankC 1 Reply Last reply Reply Quote 0
            • Claudia FrankC Offline
              Claudia Frank @Eric Williams
              last edited by

              @Eric-Williams

              I agree if it is the hosts file like I said earlier. This file has been excluded from fs redirection but
              if you want to open for example gmreadme.txt located under C:\Windows\System32\drivers
              then it won’t work.

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors