PC Review


Reply
Thread Tools Rate Thread

Batch Files Don't Stay Open

 
 
KenG
Guest
Posts: n/a
 
      4th Jun 2008
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
 
Reply With Quote
 
 
 
 
Terry R.
Guest
Posts: n/a
 
      5th Jun 2008
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.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
files won't stay open Marv Windows XP General 2 6th Apr 2004 03:24 PM
Files stay open Ray K. Microsoft Windows 2000 Advanced Server 1 25th Feb 2004 05:46 AM
Files stay open Ray K. Microsoft Windows 2000 Active Directory 0 9th Dec 2003 02:33 PM
Re: Help - Files stay open! Brian Oakes [MSFT] Microsoft Windows 2000 Networking 0 12th Aug 2003 07:59 PM
Re: Help - Files stay open! Jake Paris Microsoft Windows 2000 Networking 0 12th Aug 2003 02:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 PM.