Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


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

Re: Tutorial: How to set up any batch script as your Windows default web browser

From Marion <marion@facts.com>
Newsgroups alt.comp.os.windows-10, alt.comp.os.windows-11, alt.comp.microsoft.windows
Subject Re: Tutorial: How to set up any batch script as your Windows default web browser
Date 2025-08-19 21:07 +0000
Organization BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID <1082p37$2bal$1@nnrp.usenet.blueworldhosting.com> (permalink)
References <10825ir$7nu$1@nnrp.usenet.blueworldhosting.com> <1082dcc$3sbh6$1@dont-email.me>

Cross-posted to 3 groups.

Show all headers | View raw


On Tue, 19 Aug 2025 19:47:47 +0200, R.Wieser wrote :


> A question : how do you think the default web-browser picker knows what to 
> check that "DummyBrowser.exe" name against ?   I do not, in the 
> "StartMenuInternet" registry branch, see any filepath to the executable 
> itself.
> 
> The *only* place your .REG file shows a name with a .EXE extension is here :
> 
>> [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DummyBrowserHTML\shell\open\command]
>> @="\"C:\\path\\to\\dummybrowser.exe\" \"%1\""

Ah. My mistake. Thanks for pointing that confusion out. 
I wanted anyone to be able to set the dummy browser to a batch script.

I had assumed people would modify anything starting with "C:".

My fault. I should have better noted where the user needs to change paths.
Thanks for letting me know. I'll be more clear below. Much appreciated.

The hope was that people could just cut and paste (and set the paths).
But I don't know what their paths would be.

Thanks for testing it and pointing out that the "path to" might be confusing in the registry file where you need the real path.

Everything that starts with "C:" needs to point to an actual file.
Everything else should be left alone.

Here's my actual batch file path:
C:\sys\bat\dummybrowser.bat

And here's the actual path to my executable file:
C:\sys\exe\dummybrowser.exe

Here's the actual full batch script:
===< cut here >===
@echo off
REM C:\sys\bat\dummybrowser.bat 20250819 revision 1.7
set LOGFILE=C:\sys\log\dummybrowser.log
echo [%date% %time%] Attempted launch: %* >> %LOGFILE%
start "" "C:\app\editor\txt\vim\gvim.exe" "%LOGFILE%"
exit
===< cut here >===

And here's my actual registry file script:
===< cut here >===
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\DummyBrowser]
@="Dummy Browser"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\DummyBrowser\Capabilities]
"ApplicationName"="Dummy Browser"
"ApplicationDescription"="A privacy-preserving dummy browser"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\DummyBrowser\Capabilities\FileAssociations]
".htm"="DummyBrowserHTML"
".html"="DummyBrowserHTML"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\DummyBrowser\Capabilities\URLAssociations]
"http"="DummyBrowserHTML"
"https"="DummyBrowserHTML"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DummyBrowserHTML\shell\open\command]
@="\"C:\\sys\\exe\\dummybrowser.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications]
"Dummy Browser"="Software\\Clients\\StartMenuInternet\\DummyBrowser\\Capabilities"


===< cut here >=== (note the blank closing line!)


Note that every path & file above that starts with "C:" must exist.
Note that you create the EXE as from the BAT as described prior.
Note that you can use any editor that you want (e.g., Notepad.exe).
Note that wrapping may screw up the lines above due to the nntp servers.

Let me know if I still missed something important.
Sorry I wasn't more clear at first. 
This is the first time I've ever set my browser to be a batch log creator.

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


Thread

Tutorial: How to set up any batch script as your Windows default web browser Marion <marion@facts.com> - 2025-08-19 15:34 +0000
  Re: Tutorial: How to set up any batch script as your Windows default web browser "R.Wieser" <address@is.invalid> - 2025-08-19 19:47 +0200
    Re: Tutorial: How to set up any batch script as your Windows default web browser Marion <marion@facts.com> - 2025-08-19 21:07 +0000
      Re: Tutorial: How to set up any batch script as your Windows default web browser "R.Wieser" <address@is.invalid> - 2025-08-20 09:09 +0200
        Re: Tutorial: How to set up any batch script as your Windows default web browser Marion <marion@facts.com> - 2025-08-21 03:33 +0000
          Re: Tutorial: How to set up any batch script as your Windows default web browser "R.Wieser" <address@is.invalid> - 2025-08-21 09:49 +0200
      Re: Tutorial: How to set up any batch script as your Windows default web browser wasbit <wasbit@REMOVEhotmail.com> - 2025-08-20 10:08 +0100
        Re: Tutorial: How to set up any batch script as your Windows default web browser Marion <marion@facts.com> - 2025-08-20 16:32 +0000

csiph-web