Re: very slow cursor in CMD window w/Text editor?



When NTCMDPROMPT is put back into autoexec.nt
doing the same thing verifies that comspec=c:\windows\system32\cmd.exe
then the xxp.bat Works.

REM NTCMDPROMPT
REM When you return to the command prompt from a TSR or while running an
REM MS-DOS-based application, Windows runs COMMAND.COM. This allows the
REM TSR to remain active. To run CMD.EXE, the Windows command prompt,
REM rather than COMMAND.COM, add the command ntcmdprompt to CONFIG.NT or
REM other startup file.

Examples
To include ntcmdprompt in your Config.nt file, or the configuration startup
file specified in the PIF, type:

ntcmdprompt

------------

The exit command is an internal command part of command.com or cmd.exe.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>exit /?
Quits the CMD.EXE program (command interpreter) or the current batch
script.

EXIT [/B] [exitCode]

/B specifies to exit the current batch script instead of
CMD.EXE. If executed from outside a batch script, it
will quit CMD.EXE

exitCode specifies a numeric number. if /B is specified, sets
ERRORLEVEL that number. If quitting CMD.EXE, sets the process
exit code with that number.

exit /? typed in command.com actually exits instead of displaying the help
for exit. But, help exit works.

Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-2001.

C:\>help exit
Quits the CMD.EXE program (command interpreter) or the current batch
script.

EXIT [/B] [exitCode]

/B specifies to exit the current batch script instead of
CMD.EXE. If executed from outside a batch script, it
will quit CMD.EXE

exitCode specifies a numeric number. if /B is specified, sets
ERRORLEVEL that number. If quitting CMD.EXE, sets the process
exit code with that number.


--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:uxrOqbHJHHA.2140@xxxxxxxxxxxxxxxxxxxx,
michaeljnc <michaeljnc@xxxxxxxxxxxxx> hunted and pecked:
Hi Bob. OK, I did that. It shows:
EXIT
=Creates a directory

Obviously, it does not create a directory, but typing Exit -> Enter at
the prompt works as expected. It's just the .BAT command that is ignored?
Does that look right to you? Wonder if I can verify my ver. of
command.com?

Not that big a deal; a little annoying but it is curious.
Thanks,
Mike

Windows XP Home SP2
AMD Sempron 3400+ 2.0 GHZ
1024MB RAM - 128MB shared video
eMachines T3418

Bob I wrote:
Dunno what's happening there but try this.

Make a copy of "command.com", rename it to Command.txt and open it with
Notepad, then scroll about 2/3 of the way down. Exit is listed along
with the other embedded commands.

michaeljnc wrote:

Hi Bob. That's very strange. I just tried it again.
I removed the NTCMDPROMPT command from autoexec.nt;
started the editor;
did a shell out to DOS prompt;
verified COMSPEC=c:\windows\system32\command.com
ran the xxp.bat;
it echos the single line, exit;
then back to the prompt

When NTCMDPROMPT is put back into autoexec.nt
doing the same thing verifies that comspec=c:\windows\system32\cmd.exe
then the xxp.bat Works.

So that's all I know.
Gremlins, I guess? :-/
Mike

Bob I wrote:


michaeljnc wrote:

I think I saw something about using quotes or even a single
preceding quote, but I tried that and it didn't work?
cd 'c:\documents and settings

Another curious thing is that an x.bat file containing EXIT, will exit
from a CMD prompt but not from command.com.


exit works on a "command" bat file here.



Wesley Vogel wrote:

True, Bob.

But try:
cd C:\Documents and Settings
instead of
cd C:\DOCUME~1
in command.com. ;-)

.



Relevant Pages

  • Re: Skips Login Screen!
    ... > As if I would be so stupid to try a command without looking it up first. ... > ignore nonexistent files, never prompt ... > output version information and exit ... Email is spam trap try baskitcaise at gmx dot co dot uk ...
    (alt.os.linux.suse)
  • Re: very slow cursor in CMD window w/Text editor?
    ... Obviously, it does not create a directory, but typing Exit -> Enter at the prompt works as expected. ... It's just the .BAT command that is ignored? ...
    (microsoft.public.windowsxp.general)
  • Re: Most dependable way to run system commands
    ... Eventually I'd like to bring the execution of a few system commands ... specific execution issue (it dealt more with executing Perl code)). ... Unix and many similar systems, the exit status is an integer, with 0 ... variable after running a command via system or backticks. ...
    (perl.beginners)
  • Error in kernel compilation
    ... did 'make xconfig'. ... Din't do any changes, saved and exit. ... prompt I typed 'make dep' which was successful and then 'make'. ...
    (comp.os.linux.development.system)
  • Re: difference between the -o and || conditionals.
    ... you are running a first "[" command with ... equal to the number whose string representation is in its third ... a non-0 exit status otherwise. ... the cat and grep commands are run and its (possibly ...
    (comp.unix.shell)