Groups | Search | Server Info | Login | Register


Groups > alt.comp.os.windows-10 > #185845

Re: How do I get at the hosts file?

From MikeS <mikes@is.invalid>
Newsgroups alt.comp.os.windows-10, alt.comp.os.windows-11, alt.windows7.general
Subject Re: How do I get at the hosts file?
Date 2025-07-15 21:47 +0100
Message-ID <1056eoi$2at3d$1@solani.org> (permalink)
References <104smr5$1h6g5$2@dont-email.me> <104sqv8$2pb5s$1@paganini.bofh.team> <104toeh$22tor$2@dont-email.me> <104uiqg$25ovk$1@solani.org> <10509md$2o3jp$2@dont-email.me>

Cross-posted to 3 groups.

Show all headers | View raw


On 13/07/2025 13:43, J. P. Gilliver wrote:
> On 2025/7/12 22:7:28, MikeS wrote:
> []
> 
>> This shortcut works for me after setting it to open as administrator 
>> by ticking the box:
>> %windir%\system32\notepad.exe /A "C:\Windows\System32\drivers\etc\hosts"
> 
> Thanks - that works! I'd got to the same place - ticking the box in the 
> shortcut with almost the above line in it - but it wasn't opening or 
> saving the extensionless file. (I could do it manually, but if a 
> shortcut can, why faff?) Your solution even saves without having to 
> select "all files" etcetera. (Well, I've left the . after hosts inside 
> the quotes in my version, as I had it there anyway.)
> 
> It's obviously the
> 
>      /A
> 
> switch that made it work. How did you find out about that? (I wondered 
> if there _was_ some switch that would help, but both "/?" and "help 
> notepad" failed as I have described upthread, so I was a bit stuck 
> trying to find out.)

Google found this
https://superuser.com/questions/1720078/windows-11-notepad-command-line-options
and it seems they still work.

Back to alt.comp.os.windows-10 | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

How do I get at the hosts file? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-12 05:03 +0100
  Re: How do I get at the hosts file? Operation Sindoor <Operation.Sindoor@invalid.invalid> - 2025-07-12 05:08 +0000
    Re: How do I get at the hosts file? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-12 14:37 +0100
      Re: How do I get at the hosts file? Operation Sindoor <Operation.Sindoor@invalid.invalid> - 2025-07-12 19:39 +0000
        Re: How do I get at the hosts file? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-13 13:22 +0100
      Re: How do I get at the hosts file? "Kerr-Mudd, John" <admin@127.0.0.1> - 2025-07-12 22:01 +0100
        Re: How do I get at the hosts file? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-13 13:36 +0100
          Re: How do I get at the hosts file? Andy Burns <usenet@andyburns.uk> - 2025-07-13 13:44 +0100
            W10/11 different notepad (was: Re: How do I get at the hosts file?) "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-13 14:22 +0100
              Re: W10/11 different notepad Andy Burns <usenet@andyburns.uk> - 2025-07-13 15:29 +0100
                Re: W10/11 different notepad knuttle <keith_nuttle@yahoo.com> - 2025-07-13 17:34 -0400
              Re: W10/11 different notepad "...winston" <winstonmvp@gmail.com> - 2025-07-13 10:41 -0400
          Re: How do I get at the hosts file? "Kerr-Mudd, John" <admin@127.0.0.1> - 2025-07-14 20:10 +0100
            write and wordpad (was: Re: How do I get at the hosts file?) "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-14 22:02 +0100
          Re: How do I get at the hosts file? micky <NONONOmisc07@fmguy.com> - 2025-07-15 14:32 -0400
            Re: How do I get at the hosts file? Paul <nospam@needed.invalid> - 2025-07-15 14:37 -0400
              Re: How do I get at the hosts file? Marion <marion@facts.com> - 2025-07-15 19:09 +0000
                Re: How do I get at the hosts file? Andy Burns <usenet@andyburns.uk> - 2025-07-16 10:13 +0100
                Re: How do I get at the hosts file? Marion <marion@facts.com> - 2025-07-16 20:06 +0000
                Re: How do I get at the hosts file? Zaidy036 <Zaidy036@air.isp.spam> - 2025-07-16 16:36 -0400
                Re: How do I get at the hosts file? Andy Burns <usenet@andyburns.uk> - 2025-07-16 22:14 +0100
                Re: How do I get at the hosts file? Marion <marion@facts.com> - 2025-07-17 01:52 +0000
                Re: How do I get at the hosts file? Marion <marion@facts.com> - 2025-07-19 03:08 +0000
                Re: How do I get at the hosts file? Andy Burns <usenet@andyburns.uk> - 2025-07-20 21:17 +0100
                Re: How do I get at the hosts file? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-20 23:32 +0100
            Re: How do I get at the hosts file? Zaidy036 <Zaidy036@air.isp.spam> - 2025-07-15 22:02 -0400
      Re: How do I get at the hosts file? MikeS <mikes@is.invalid> - 2025-07-12 22:07 +0100
        Re: How do I get at the hosts file? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-13 13:43 +0100
          Re: How do I get at the hosts file? MikeS <mikes@is.invalid> - 2025-07-15 21:47 +0100
            Re: How do I get at the hosts file? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-15 22:58 +0100
              Re: How do I get at the hosts file? MikeS <mikes@is.invalid> - 2025-07-16 08:21 +0100
                Re: How do I get at the hosts file? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-17 01:33 +0100
    Re: How do I get at the hosts file? "s|b" <me@privacy.invalid> - 2025-07-13 14:07 +0200
      Re: How do I get at the hosts file? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-13 13:46 +0100
        Re: How do I get at the hosts file? "s|b" <me@privacy.invalid> - 2025-07-13 14:55 +0200
          Re: How do I get at the hosts file? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-13 14:29 +0100
            Re: How do I get at the hosts file? "s|b" <me@privacy.invalid> - 2025-07-13 17:47 +0200
  Re: How do I get at the hosts file? dillinger <dillinger@invalid.not> - 2025-07-12 22:06 +0200
    Re: How do I get at the hosts file? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-07-13 14:01 +0100

csiph-web