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


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

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

From "Auric__" <not.my.real@email.address>
Newsgroups comp.os.msdos.programmer
Subject Re: Booting process 0: how to find out its full path?
Date 2021-11-16 16:54 +0000
Organization A noiseless patient Spider
Message-ID <XnsADE464DA8276Bauricauricauricauric@144.76.35.252> (permalink)
References <20211116104416.2b3d207f@mateusz>

Show all headers | View raw


Mateusz Viste wrote:

> 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).

Just throwing out the obvious here... have you considered just looking 
through config.sys for the shell?

-- 
"Armies with ammo" comes before "damsels in distress" alphabetically.

Back to comp.os.msdos.programmer | Previous | NextPrevious in thread | Next 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