CMD Window - How to keep it open

  • Thread starter Thread starter Tecknomage
  • Start date Start date
T

Tecknomage

OK, lets say I have a MENU.CMD file and create a shortcut to it.

How do I get the CMD Window to remain open after MENU.CMD runs?
This command prints text of choices and drops out. I what it to return to
the command window, command-prompt.

That is, I want it to operate like a MS DOS command.com call.

I've tried the /c & /k switches and the window still closes.

Shortcut:
D:\RunMenus\menu.cmd /k
runs and window closes.
 
Tecknomage wrote:

> OK, lets say I have a MENU.CMD file and create a shortcut to it.
>
> How do I get the CMD Window to remain open after MENU.CMD runs?
> This command prints text of choices and drops out. I what it to return to
> the command window, command-prompt.
>
> That is, I want it to operate like a MS DOS command.com call.
>
> I've tried the /c & /k switches and the window still closes.
>
> Shortcut:
> D:\RunMenus\menu.cmd /k
> runs and window closes.


Open the command prompt first:

cmd /k
D:\RunMenus\menu.cmd

John
 
CMD /K "D:RunMenus/menu.cmd"
--
helpful? click "Yes" button. Voting helps the web interface.
http://www.microsoft.com/windowsxp/...g=microsoft.public.windowsxp.help_and_support
Mark L. Ferguson



"Tecknomage" wrote:

> OK, lets say I have a MENU.CMD file and create a shortcut to it.
>
> How do I get the CMD Window to remain open after MENU.CMD runs?
> This command prints text of choices and drops out. I what it to return to
> the command window, command-prompt.
>
> That is, I want it to operate like a MS DOS command.com call.
>
> I've tried the /c & /k switches and the window still closes.
>
> Shortcut:
> D:\RunMenus\menu.cmd /k
> runs and window closes.
 
"Tecknomage" <Tecknomage@discussions.microsoft.com> wrote in message
news:D9CF2F0E-207C-438A-A266-C2B514364E67@microsoft.com...
> OK, lets say I have a MENU.CMD file and create a shortcut to it.
>
> How do I get the CMD Window to remain open after MENU.CMD runs?
> This command prints text of choices and drops out. I what it to return to
> the command window, command-prompt.


Look at your shortcuts properties. There should be a checkmark relating to
closing the window when complete.
 
You're thinking of a DOS COMMAND.COM shortcut. That does have the option you
mention.

"Noozer" wrote:

>
> "Tecknomage" <Tecknomage@discussions.microsoft.com> wrote in message
> news:D9CF2F0E-207C-438A-A266-C2B514364E67@microsoft.com...
> > OK, lets say I have a MENU.CMD file and create a shortcut to it.
> >
> > How do I get the CMD Window to remain open after MENU.CMD runs?
> > This command prints text of choices and drops out. I what it to return to
> > the command window, command-prompt.

>
> Look at your shortcuts properties. There should be a checkmark relating to
> closing the window when complete.
>
>
>
 
Back
Top