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


Groups > comp.os.msdos.programmer > #4063

Re: Booting process 0: how to find out its full path?

From Mateusz Viste <mateusz@xyz.invalid>
Newsgroups comp.os.msdos.programmer
Subject Re: Booting process 0: how to find out its full path?
Date 2021-11-17 09:11 +0100
Organization . . .
Message-ID <20211117091109.08b0e807@mateusz> (permalink)
References <20211116104416.2b3d207f@mateusz> <alkpd8bmk1pw$.14b1qw57mbkel.dlg@40tude.net>

Show all headers | View raw


2021-11-17 at 08:23 +0700, JJ wrote:
> On Tue, 16 Nov 2021 10:44:16 +0100, Mateusz Viste wrote:
> > Hello,
> > 
> > I am working on a shell that would replace COMMAND.COM and I
> > wonder: is there any way I can figure out where my shell is, once
> > it is executed by the MS-DOS kernel?
> > 
> > By default MS-DOS launches whatever it finds at
> > [BOOTDRV]:\COMMAND.COM. This situation is easy, but there is also
> > the possibility that the shell was configured through a "SHELL" or
> > "SHELLHIGH" CONFIG.SYS directive: SHELL=X:\EXOTIC\PATH\CUSTOM.COM
> > 
> > I am unable to find a way to discover the above path. Any ideas if
> > this is feasible at all? I went through RBIL but with no luck so
> > far.
> > 
> > The environment contains the full path/name of the executed program,
> > but this does not apply to process 0, as the MS-DOS kernel does not
> > allocate any environment for it (env segment in PSP = 0x0000).
> > 
> > Mateusz  
> 
> You may want to walk the MCB chain to find the master environment
> block.

No, because such an environment simply does not exists at the time
process 0 is being loaded.

Mateusz

Back to comp.os.msdos.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Booting process 0: how to find out its full path? Mateusz Viste <mateusz@xyz.invalid> - 2021-11-16 10:44 +0100
  Re: Booting process 0: how to find out its full path? "Auric__" <not.my.real@email.address> - 2021-11-16 16:54 +0000
    Re: Booting process 0: how to find out its full path? Mateusz Viste <mateusz@xyz.invalid> - 2021-11-16 18:07 +0100
      Re: Booting process 0: how to find out its full path? "Auric__" <not.my.real@email.address> - 2021-11-16 18:49 +0000
        Re: Booting process 0: how to find out its full path? Mateusz Viste <mateusz@xyz.invalid> - 2021-11-16 20:46 +0100
  Re: Booting process 0: how to find out its full path? JJ <jj4public@gmail.com> - 2021-11-17 08:23 +0700
    Re: Booting process 0: how to find out its full path? Mateusz Viste <mateusz@xyz.invalid> - 2021-11-17 09:11 +0100

csiph-web