PC Review


Reply
Thread Tools Rate Thread

command prompt

 
 
stewart
Guest
Posts: n/a
 
      5th Dec 2003
anybody know how to disable closing the command prompt
window (like during execution of a batch (*.bat) script
file)??

thanks stewart
 
Reply With Quote
 
 
 
 
Thorsten Matzner
Guest
Posts: n/a
 
      5th Dec 2003
"stewart" <(E-Mail Removed)> wrote:

>anybody know how to disable closing the command prompt
>window (like during execution of a batch (*.bat) script
>file)??


Simple way: put
PAUSE
at the end of the batch file.

--
(tm)
 
Reply With Quote
 
stewart
Guest
Posts: n/a
 
      5th Dec 2003
i don't want it to pause at the end of the script, i
simply want it to close. i don't want a user to be able
to close the command prompt window WHILE the batch is
running, when the batch completes, i WANT the window to
close. in my particular case, i am running the batch
from a login script, it will run for several minutes, i
don't want a user to be able to close it.

stewart

>-----Original Message-----
>"stewart" <(E-Mail Removed)> wrote:
>
>>anybody know how to disable closing the command prompt
>>window (like during execution of a batch (*.bat) script
>>file)??

>
>Simple way: put
>PAUSE
>at the end of the batch file.
>
>--
>(tm)
>.
>

 
Reply With Quote
 
John Doue
Guest
Posts: n/a
 
      5th Dec 2003
stewart wrote:

> anybody know how to disable closing the command prompt
> window (like during execution of a batch (*.bat) script
> file)??
>
> thanks stewart

Unless I misunderstood your question, the answer is simple: in the
properties windows, do not check "close on exit".

--
*-*-*-*-*-*-*-*-*-*
John Doue
*-*-*-*-*-*-*-*-*-*

 
Reply With Quote
 
Thorsten Matzner
Guest
Posts: n/a
 
      6th Dec 2003
"stewart" <(E-Mail Removed)> wrote:

>i don't want a user to be able
>to close the command prompt window WHILE the batch is
>running, when the batch completes, i WANT the window to
>close.


This cannot be done with Windows. Maybe some add-on software provides
this, but I have not seen such a tool.

--
(tm)
 
Reply With Quote
 
Durand
Guest
Posts: n/a
 
      6th Dec 2003
Hi,

Just add "exit" to the end of the batch file and it will close
automatically.

Thorsten Matzner wrote:

> "stewart" <(E-Mail Removed)> wrote:
>
>
>>i don't want a user to be able
>>to close the command prompt window WHILE the batch is
>>running, when the batch completes, i WANT the window to
>>close.

>
>
> This cannot be done with Windows. Maybe some add-on software provides
> this, but I have not seen such a tool.
>


--
Regards,

Durand

 
Reply With Quote
 
Thorsten Matzner
Guest
Posts: n/a
 
      7th Dec 2003
Durand <(E-Mail Removed)> wrote:

>Just add "exit" to the end of the batch file and it will close
>automatically.


I do not think that this is the problem, because he wrote that he does
not want anyone to close the batch _while it runs_ and it already
closes when it has been finished.
There is no way to do this in Windows as far as I know.

--
(tm)
 
Reply With Quote
 
Durand
Guest
Posts: n/a
 
      9th Dec 2003
He wasn't clear but he did state that he wanted it to close after it
was done. That's why I made my suggestion. As for preventing it while
it's running, I don't know of a way to prevent the batch file from
being closed while it's running either, but perhaps he could make a
shortcut to the batch file and run it minimized so the users don't
notice it running in the background?

Thorsten Matzner wrote:
> Durand <(E-Mail Removed)> wrote:
>
>
>>Just add "exit" to the end of the batch file and it will close
>>automatically.

>
>
> I do not think that this is the problem, because he wrote that he does
> not want anyone to close the batch _while it runs_ and it already
> closes when it has been finished.
> There is no way to do this in Windows as far as I know.
>


--
Regards,

Durand

 
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
Command prompt tool to minimize a command window AFTER it starts? Herb Martin Microsoft Windows 2000 CMD Promt 4 9th Apr 2009 09:52 PM
NO COMMAND PROMPT OR RECOVERY CONSOLE PROMPT =?Utf-8?B?QV9EVUI=?= Windows XP Performance 1 6th Aug 2006 09:06 PM
Changing prompt from C:\documents and settings\ to C:\ within command prompt Nulligan@gmail.com Windows XP General 4 1st Aug 2006 08:10 PM
command line prompt showing how long last command took? sillyhat@yahoo.com Microsoft Windows 2000 CMD Promt 13 31st May 2006 04:18 PM
Permission Denied while running cscript command in command prompt Eric Microsoft Windows 2000 CMD Promt 0 3rd Oct 2003 08:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:59 PM.