Re: very slow cursor in CMD window w/Text editor?
- From: "Wesley Vogel" <123WVogel955@xxxxxxxxxxx>
- Date: Thu, 21 Dec 2006 13:03:56 -0700
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. ;-)
.
- References:
- very slow cursor in CMD window w/Text editor?
- From: Michael C.
- Re: very slow cursor in CMD window w/Text editor?
- From: Wesley Vogel
- Re: very slow cursor in CMD window w/Text editor?
- From: michaeljnc
- Re: very slow cursor in CMD window w/Text editor?
- From: Wesley Vogel
- Re: very slow cursor in CMD window w/Text editor?
- From: Bob I
- Re: very slow cursor in CMD window w/Text editor?
- From: Wesley Vogel
- Re: very slow cursor in CMD window w/Text editor?
- From: michaeljnc
- Re: very slow cursor in CMD window w/Text editor?
- From: Bob I
- Re: very slow cursor in CMD window w/Text editor?
- From: michaeljnc
- Re: very slow cursor in CMD window w/Text editor?
- From: Bob I
- Re: very slow cursor in CMD window w/Text editor?
- From: michaeljnc
- very slow cursor in CMD window w/Text editor?
- Prev by Date: Re: Deleting Non-DOS Partitions
- Next by Date: Display set too low:can't see "settings"
- Previous by thread: Re: very slow cursor in CMD window w/Text editor?
- Next by thread: Re: very slow cursor in CMD window w/Text editor?
- Index(es):
Relevant Pages
|