Re: ntcmdprompt usage question

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Feb 13, 4:21 pm, "Wesley Vogel" <123WVogel...@xxxxxxxxxxx> wrote:
"debug" is a legacy 16-bit program. So actually ntvdm.exe will be run
to simulate a 16bit environment.

Yep.

Debug
Starts Debug.exe, a program you can use to test and debug MS-DOS executable
files.
Windows XP does not use this command. It is accepted only for compatibility
with MS-DOS files.
Debug is a MS-DOS subsystem command that runs under WOW/NTVDM.
hh ntcmds.chm::/debug.htm

C:\WINDOWS\system32\debug.exe is a 16-bit application. See debug.exe
Properties. A 16-bit program does not have a Version tab in this dialog
box.

"command.exe" is also a 16bit
program. That's the reason why you got 8.3 short names.

Nope.

"command.exe" is not correct, it is command.com. Command.exe is created by
a trojan. Cmd.com is also created by a trojan.

But since command.com runs, that is why the short names. Command.com will
not handle long names. Debug probably does not handle long names either.

cmd.exe is the Windows Command Processor which is 32-bit and command.com is
NT's version of the MS-DOS command prompt and is a 16-bit DOS application
that runs under ntvdm.exe.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

Innews:1171387202.841783.152590@xxxxxxxxxxxxxxxxxxxxxxxxxxxx,
Paul <power...@xxxxxxxxx> hunted and pecked:

On Feb 13, 8:44 pm, "n...@xxxxxxxxxxx" <n...@xxxxxxxxxxx> wrote:
On Feb 12, 4:15 pm, "Wesley Vogel" <123WVogel...@xxxxxxxxxxx> wrote:

What is debug ?? A folder? A COM file, .EXE file, .BAT file, .CMD
file, .VBS file, .VBE file, .JS file, .JSE file, .WSF file, .WSH file
or what??

And why does whatever debug is cause command.com to run? Is debug
16-bit?

i un-rem-ed ntcmdprompt in c:\windows\system32\config.nt
i thought it was supposed to force xp to use cmd.exe instead of
command.com

REM it out again. REM NTCMDPROMPT

Config.nt and autoexec.nt only affect command.com which is 16-bit. The
16 Bit MS-DOS Subsystem uses command.com. Config.nt or autoexec.nt
have no affect on cmd.exe, the Windows Command Processor which is
32-bit.

my goal is to be able to run batch files from the console with
imbedded long file names.

Cmd.exe handles long file names. Is debug a .bat file with old
commands?

From config.nt...
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.

<quote>
Ntcmdprompt
Runs the command interpreter Cmd.exe, rather than Command.com, after
running a TSR or after starting the command prompt from within an MS-DOS
application.

Remarks
When Command.com is running, some features of Cmd.exe, such as the
doskey display of command history, are not available. If you would
prefer to run the Cmd.exe command interpreter after you have started a
TSR or started the command prompt from within an application based on
MS-DOS, you can use the ntcmdprompt command. However, keep in mind that
the TSR may not be available for use when you are running Cmd.exe. You
can include the ntcmdprompt command in your Config.nt file or the
equivalent custom startup file in an application's program information
file (PIF).
Examples
To include ntcmdprompt in your Config.nt file, or the configuration
startup file specified in the PIF, type:

ntcmdprompt
<quote>

Paste the following line into Start | Run and click OK...

hh ntcmds.chm::/ntcmdprompt.htm

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

Innews:1171289937.788455.44020@xxxxxxxxxxxxxxxxxxxxxxxxxxx,
n...@xxxxxxxxxxx <n...@xxxxxxxxxxx> hunted and pecked:

let me illustrate the issue ...

open an xp cmd prompt
type "c:" then "cd\program files"
the prompt is "c:\program files>"
now type "debug" followed by "q" to quit
the prompt is now "c:\progra~1" because command.com ran

i un-rem-ed ntcmdprompt in c:\windows\system32\config.nt
i thought it was supposed to force xp to use cmd.exe instead of
command.com
yet the above symptoms, ie, 8.3 directory names, persists

my goal is to be able to run batch files from the console with
imbedded long file names.

thanks in advance.

let me begin again. i'm in the windows xp console, ie, cmd.exe. i run
a 32 bit program from the command line. when it returns, command.com
seems to be running instead of cmd.exe -- long path names are being
reported as 8.3 short names. i am looking for a way to prevent
command.com from running. the docs in config.nt seem to indicate that
ntcmdprompt would do that, but it does nothing as far as i can
determine.- Hide quoted text -

- Show quoted text -

"debug" is a legacy 16-bit program. So actually ntvdm.exe will be run
to simulate a 16bit environment. "command.exe" is also a 16bit
program. That's the reason why you got 8.3 short names.

the reason i was using debug was that i knew it was a 16 bit program
that would invoke command.com and illustrate the problem, which is ...

why do i see 8.3 dir names after debug exits? i tought ntcmdprompt was
supposed to force cmd.exe to get control back, which i would think
would give a long file name prompt.

.



Relevant Pages

  • Re: Wildcard on Folder Name
    ... This is not DOS - it is the Command Prompt. ... Microsoft Windows XP - Command-line reference A-Z ... Microsoft Windows XP - MS-DOS subsystem commands ...
    (microsoft.public.windowsxp.general)
  • Re: How can i install and boot to MS-DOS
    ... Debug is an ancient command that is included in almost all versions of MS-DOS, is it part of your DOS installation? ... Another way of creating the multi-boot is to start a Windows XP installation from the up and booted MS-DOS installation and then aborting the installation before the first reboot. ... To launch the XP setup from DOS insert the CD in the drive and navigate to the i386 directory and launch the Winnt command. ...
    (microsoft.public.windowsxp.setup_deployment)
  • RE: re-setting boot partition
    ... Description of the Windows 2000 Recovery Console ... For a Microsoft Windows XP version of this article, ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ...
    (microsoft.public.win2000.setup_upgrade)
  • RE: Win2000 Upgrade to SP3 Express Setup error.
    ... Start your computer with the Windows Setup floppy disks, ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ... you cannot copy a file from the local hard disk to a floppy disk. ...
    (microsoft.public.win2000.setup_upgrade)
  • RE: Locating corrupt driver
    ... This article describes the functionality and limitations of the Windows ... Create and format partitions on drives. ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ...
    (microsoft.public.win2000.applications)