Auric__
2021-11-16 16:54:51 UTC
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
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 lookingthere 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
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).
through config.sys for the shell?
--
"Armies with ammo" comes before "damsels in distress" alphabetically.
"Armies with ammo" comes before "damsels in distress" alphabetically.