Calling second CMD prompt

  • Thread starter Thread starter Jim
  • Start date Start date
J

Jim

Hi All:

In DOS one could step through the commands in a batch file one at a time by
issuing the following command:

COMMAND /y /c TEST.BAT

In CMD I find the similar command is:
CMD /c TEST.BAT

but cannot for the life of me get the program to pause before each command
is executed as it did in DOS. Any help would be appreciated.

Thanks in advance,

Jim
 
Jim said:
Hi All:

In DOS one could step through the commands in a batch file one at a time by
issuing the following command:

COMMAND /y /c TEST.BAT

In CMD I find the similar command is:
CMD /c TEST.BAT

but cannot for the life of me get the program to pause before each command
is executed as it did in DOS. Any help would be appreciated.

Thanks in advance,

Jim
Hello Jim,
you will have to use other debugging techniques like straying in
pause commands, switch echo on and echoing variables, redirecting output
and/or error output to a file etc. to know whats going on in your batch.

HTH
 
you will have to use other debugging techniques like straying in
pause commands, switch echo on and echoing variables, redirecting output
and/or error output to a file etc. to know whats going on in your batch.

You can also use the Mount/\Commands,

.Rem
.ShowComments
.HideComments

to place dynamically assigned comments in your scripts.
These commands are part of the FREE Advanced NT/2K/XP/K3 Command Library

(http://TheSystemGuard.com/MtCmds/CrystalClear/Rem.htm)
(http://ntlib.com)

*******

..Mount/\Commands are highly optimized segments of
cross-platform shell scripting code which are then
compressed and saved in an environment variable under
a "sounds like what it does" name. This allows for
immediate access and self-documenting script code.

*******
-tsg

/-----------------+---------------+----------------------\
| COMPATIBILITY | CLARITY | SPEED |
| Write code ONCE | Make it clear | THEN...Make it fast! |
\-----------------+---------------+----------------------/
400+ command-line resources using ONLY native NT commands!
(http://TheSystemGuard.com/default.asp#MasterCommandList)
 
Back
Top