ms-dos command

G

Guest

where can i set default options for cmd.exe ?
i want to be able to tell cmd.exe to stop after completion of a command.

for instance, when i Start>Run>"some console command">[Enter], i want that
the command prompt remains open after "some command" completes.

i don't want to use <cmd /k "some command"> every time i run a console
command.

i'm looking for a <set shell parameter=/k> or something like that, or a
registry value to set.

btw, i had the inspiration of placing a "cmd.exe /k" in
hklm/software/microsoft/command processor/autorun, and guess what
(obviously), it loops when i run cmd.exe. the interesting thing, which
surprised me, was that it doesn't loop when i run a console program (like
ping or dir), so the autorun reg_sz value isn't querried when starting a
usual console application.

SO, HOW CAN I TELL THE COMMAND INTERPRETER TO KEEP A CONSOLE PROGRAM'S
WINDOW OPEN AFTER COMPLETION ????
 
P

Pegasus \(MVP\)

Answered in win2000.general
Please do not multi-post, as it wastes everybody's time.
Use cross-posting if you wish to increase your audience.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top