CMD Window - How to keep it open

G

Guest

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.
 
J

John John

Tecknomage said:
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
 
N

Noozer

Tecknomage said:
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.
 
G

Guest

You're thinking of a DOS COMMAND.COM shortcut. That does have the option you
mention.
 

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