Batch Files Don't Stay Open

  • Thread starter Thread starter KenG
  • Start date Start date
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
 
The date and time was 6/4/2008 3:43 PM, and on a whim, KenG pounded out
on the keyboard:

> 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.
 
Back
Top