[EMAIL PROTECTED] wrote:
> on dos prompt, giving -
> c:\> command
> brings a child shell and does nothing.

Right. Wonder why it does not call autoexec.bat?

> giving -
> c:\>command c:\autoexec.bat
> gives message: "specified COMMAND search directory bad" and does
> nothing.

What does that mean? That you probably wish to execute command.com from 
c:\autoexec.bat which is a nonexistent directory. Probably it is taking
the second argument as directory. What is your conclusion?

> the PROMPT string also disappeared in this new child, giving prompt as:
> c>

Right. echo prompt to find out that the value is not set.

> on giving -
> c> set
> PATH=
> single env variable PATH appears which itself is empty.

Because you are SETTING IT. If it did not appear empty that way, I would
consider this a bug in DOS 6.22, my favourite O/S before I installed 
Linux on my PC.

If you want to see your path echoed on DOS prompt, do

prompt=$p$g$s

to get

c:\windows> [one space]

> > [Autoexec is invoked the first time the shell is launched]
> meaning command.com does invoke it.

You seem to be hell bent upon linking invoking of autoexec.bat by 
command.com and nothing else. Who knows, you might even be right
but try and look for the answer in a logical fashion. The DOS kernel
is actually made up of three files. MSDOS.SYS, IO.SYS and COMMAND.COM.
As of I know, command.com is the last one to be loaded and it may
even be needed by the executions in autoexec.bat but why do you
abhor the idea that command.com is loaded at bootup and that
autoexec.bat
is called at bootup, may have been all doings of some other file?
Like MSDOS.SYS? Or some environment variable would be set at bootup?

Let us admit that we do not know for sure, alright? Or explain why
each command.com does not fire execution of autoexec.bat? Or what
calls the autoexec.bat at startup - probably some file which is loaded
only once in memory at startup..l msdos.sys? io.sys? Or something else?

You tell me.

Rohit
> 
> regards
> -vulcan
> 
> -----------------------------------------------------------------------
> For more information on the LIH mailing list see:
> http://lists.linux-india.org/lists/LIH

-----------------------------------------------------------------------
For information on this and other Linux India mailing lists check out
http://lists.linux-india.org/

Reply via email to