How to properly edit the hosts file in Windows 10?

Discussion in 'Windows 10' started by spkleader, Nov 2, 2015.

  1. spkleader

    spkleader MDL Senior Member

    Oct 13, 2009
    263
    63
    10
    Hello MDL!
    Someone can point me to the right/easier way to edit the hosts file in Windows 10?
    Right now, I have to copy the file to another location, edit it and save it over the previous one using admin privileges :death:

    Thanks in advance!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. coromonadalix

    coromonadalix MDL Senior Member

    Jul 21, 2009
    416
    82
    10
    you have hostsman started with admin privileges who does the job ? bluelife hosts editor too ?
     
  3. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    14,731
    16,941
    340
    #3 Enthousiast, Nov 2, 2015
    Last edited: Nov 2, 2015
    Open notepad as admin, go to "file" > "open" > select *.* instead of .txt and go to c:\windows\system32\drivers\etc and you can open and edit the hosts file.
     
  4. LiteOS

    LiteOS MDL Expert

    Mar 7, 2014
    1,421
    538
    60
    #4 LiteOS, Nov 2, 2015
    Last edited: Nov 3, 2015
    go to directory
    click on file then open cmd with admin
    type notepad hosts

    Or add ntfs premission to everyone and edit it normally
     
  5. QuantumBug

    QuantumBug MDL Developer

    Mar 7, 2012
    1,488
    1,327
    60
    Copy it to the desktop, edit, replace?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    14,731
    16,941
    340
    That's what he did and doesn't want to do anymore.

    He just has to open notepad "run as admin" than he will be able to edit the hosts file and save it after editting ;)
     
  7. SV0911

    SV0911 MDL Novice

    Dec 5, 2014
    8
    3
    0
    You can use a software:HostsXpert 4.4 look for it on google or on softpedia(dot)com
     
  8. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,988
    1,316
    120

    Use the latest version of notepad++ it just asks for admin rights, if needed, to save a file.

    Simple as that.;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    14,731
    16,941
    340
    Just another not needed program for a function windows can handle by itself ;)
     
  10. JFKI

    JFKI MDL Expert

    Oct 25, 2015
    1,098
    370
    60
    Not really. I use notepad++ for editing my opensim configuration files as well...
    Windows Notepad, for some reason, removes the line feeds from those files for some reason leaving a wall of text to try to decipher. o_O
     
  11. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    14,731
    16,941
    340
    If one needs it for more stuff or things windows itself doesn't provide for, it's ok but the OP used notepad without admin rights (according to his/hers workaround) and than he/she only has to elevate notepad to admin to accomplish what he/she wanted to do in the first place :)
     
  12. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,988
    1,316
    120

    Another useless message.

    Do you realize that notepad is practically the same program that was bundled with win 3.11?

    Do you realize that in 20 years, "maybe" someone made something better... Something WAY better in that case, given such great program on one side and no competition on the other.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    14,731
    16,941
    340
    Do you realize what the OP asked for? Do you realize the OP hasn't commented himself in this thread?
     
  14. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,988
    1,316
    120
    Yes I read the message, looks like you didn't


    I replied with the most practical way to handle it.

    Computers supposedly made to simplify the human's life and having to deal to the idiotic way the Windows GUI manages the permissions isn't exactly something aimed to accomplish that task.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    14,731
    16,941
    340
    Title: how to properly edit....hosts file.

    The workaround he/she used is because notepas without elevated rights can't save it.

    Simple answer: elevate notepad to admin and he/she can edit and save the hosts file without first making a copy in another directory.

    The OP doesn't need any third party software for the task he wants to do.

    And last, who are you to give any judgement on my comment/answer?
     
  16. spkleader

    spkleader MDL Senior Member

    Oct 13, 2009
    263
    63
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,988
    1,316
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. pisthai

    pisthai Imperfect Human

    Jul 29, 2009
    6,748
    1,959
    210
    No offence: if you reply to some special Member/Person, please name that person, in this case @T-S! You quoted the post from member spkleader and your comment looks like you 'talked' to spkleader instead of T-S! It should looks like as in the quoted text above!

    Normally I wouldn't tell anything, just that's one of those members who like to bash others and had done that to me several times too!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,988
    1,316
    120
    The trolling cooperation is always a nice thing. :D

    For the record I never "bashed" what you wrote I care about wrong or good suggestions, and happened a couple of times that you wrote the wrong one in the same thread.

    That's all. I care about wrong info unpleasant users like you are an unavoidable annoyance on any forum.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. endbase

    endbase MDL Guru

    Aug 12, 2012
    3,775
    1,088
    120
    Why do people lure them selfs into making statements on behalve of other people in this way :( MDL is about sharing information on computer stuff not to bash each other head in because of different thoughts !!

    I see it a lot more lately here and I don't like to see that kind of behaviour at all :eek:

    On topic just copy the host file to another place on your hard drive will do the trick BTW ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...