Batch Files Don't Stay Open

K

KenG

Hello and thanks in advance.

I have some batch files which have dos menus. I created a shortcut to the
desktop and when I try to run a batch file the dos window opens then closes
quickly. What I need is for the window to stay open so I can access some dos
menu functions. I have a command on the menu to close the window. Any tips,
advance or needed info will be helpful.

Thanks KJG
 
T

Terry R.

The date and time was 6/4/2008 3:43 PM, and on a whim, KenG pounded out
Hello and thanks in advance.

I have some batch files which have dos menus. I created a shortcut to the
desktop and when I try to run a batch file the dos window opens then closes
quickly. What I need is for the window to stay open so I can access some dos
menu functions. I have a command on the menu to close the window. Any tips,
advance or needed info will be helpful.

Thanks KJG

Hi Ken,

Right click the shortcut and select Properties. Preface your Target
batch file with cmd.exe /k like this:
cmd.exe /k "c:\batchfiles\my DOS menu.bat"


--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 

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