A Windows 98 & ME forum. Win98banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Win98banter forum » Windows 98 » Software & Applications
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

close the ms-dos prompt box



 
 
Thread Tools Display Modes
  #1  
Old May 6th 04, 05:21 AM
glee
external usenet poster
 
Posts: n/a
Default close the ms-dos prompt box

Make this the last line of your batch file:
cls
--
Glen Ventura, MS MVP W95/98 Systems
http://dts-l.org/goodpost.htm

"W Budd" wrote in message
...
I am backing selected files from one drive to another
using dos xcopy in a batch file executee from the start-
run selection. This works fine but leaves the ms-dos
prompt box open on the desk top. If I include the
text 'command /c' before the batch file name the box
closes. This is what I want. Next I try to use the task
scheduler to run the batch files, but if I include
the 'command /c' before the batch file name the scheduled
task will not run. This is very frustrating. I just want
to execute the bat file using task scheduler and close the
ms-dos prompt box. Any suggestions how to change the
command line?

Thanks - W Budd


  #2  
Old May 7th 04, 04:06 AM
J Yazel
external usenet poster
 
Posts: n/a
Default close the ms-dos prompt box

On Wed, 5 May 2004 04:48:52 -0700, "W Budd"
wrote:

I am backing selected files from one drive to another
using dos xcopy in a batch file executee from the start-
run selection. This works fine but leaves the ms-dos
prompt box open on the desk top. If I include the
text 'command /c' before the batch file name the box
closes. This is what I want. Next I try to use the task
scheduler to run the batch files, but if I include
the 'command /c' before the batch file name the scheduled
task will not run. This is very frustrating. I just want
to execute the bat file using task scheduler and close the
ms-dos prompt box. Any suggestions how to change the
command line?

Thanks - W Budd

====================================

Add "exit" (no quotes) as the last line of the .bat file.

Also make sure that in the Dos window properties
under "program", make sure that "close on exit"
is checked.

Jack

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Logon Prompt persisting Jane Networking 0 July 5th 04 12:30 PM
EXPLORER is not listed in the Ctrl-Alt-Del Close Program Setup & Installation 1 July 3rd 04 06:20 PM
No prompt to logon to domain tom Networking 1 June 24th 04 12:03 AM
MS-DOS PROMPT - Hinders Windows 98 Performance Scott M General 7 June 12th 04 04:31 AM
Problems After Close IE John Molta Internet 1 June 7th 04 11:02 AM


All times are GMT +1. The time now is 08:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.