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


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

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

Path csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!feeder1.feed.usenet.farm!feed.usenet.farm!aioe.org!fJ3fCem/Ge388nCVHersJA.user.46.165.242.75.POSTED!not-for-mail
From Mateusz Viste <mateusz@xyz.invalid>
Newsgroups comp.os.msdos.programmer
Subject Booting process 0: how to find out its full path?
Date Tue, 16 Nov 2021 10:44:16 +0100
Organization . . .
Message-ID <20211116104416.2b3d207f@mateusz> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
Injection-Info gioia.aioe.org; logging-data="52814"; posting-host="fJ3fCem/Ge388nCVHersJA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice Filtered by postfilter v. 0.9.2
X-Newsreader Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu)
Xref csiph.com comp.os.msdos.programmer:4054

Show key headers only | View raw


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

Back to comp.os.msdos.programmer | Previous | NextNext 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