Windows XP Community - XPHeads



Registry Mechanic - Free Scan Now

How to close cmd or command window?

microsoft.public.windowsxp.configuration_manage


Reply
  #1 (permalink)  
Old 02-18-2008, 08:09 PM
Peter Jensen
 
Posts: n/a
How to close cmd or command window?
X-No-Archive: Yes

I use a network computer at work with Windows XP professional. The
signature files for Outlook are unacceptable. I tried changing them, but
no luck - they are changed back each time Outlook is started. I also
tried changing the .ini file, but it too is changed back.

I devised a work around using a .bat file to remove the read only
attribute from the signature files and overwriting them with acceptable
signature files. The only problem now is the cmd or command (tried both)
window won't close itself. I've tried various combinations with start,
cmd and command, but no luck. How can I get the command window to close
automatically?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-18-2008, 08:52 PM
Peter Foldes
 
Posts: n/a
Re: How to close cmd or command window?
By default the cmd window will not close automatically by itself. You will need a script to do it. You can try the scripting newsgroup for help on this

--
Peter

Please Reply to Newsgroup for the benefit of others
Requests for assistance by email can not and will not be acknowledged.

"Peter Jensen" <user@example.net> wrote in message news:47b9e3de$0$89174$157c6196@dreader1.cybercity. dk...
> X-No-Archive: Yes
>
> I use a network computer at work with Windows XP professional. The
> signature files for Outlook are unacceptable. I tried changing them, but
> no luck - they are changed back each time Outlook is started. I also
> tried changing the .ini file, but it too is changed back.
>
> I devised a work around using a .bat file to remove the read only
> attribute from the signature files and overwriting them with acceptable
> signature files. The only problem now is the cmd or command (tried both)
> window won't close itself. I've tried various combinations with start,
> cmd and command, but no luck. How can I get the command window to close
> automatically?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-18-2008, 09:08 PM
JS
 
Posts: n/a
Re: How to close cmd or command window?
try the 'exit' cmd.

JS

"Peter Jensen" <user@example.net> wrote in message
news:47b9e3de$0$89174$157c6196@dreader1.cybercity. dk...
> X-No-Archive: Yes
>
> I use a network computer at work with Windows XP professional. The
> signature files for Outlook are unacceptable. I tried changing them, but
> no luck - they are changed back each time Outlook is started. I also tried
> changing the .ini file, but it too is changed back.
>
> I devised a work around using a .bat file to remove the read only
> attribute from the signature files and overwriting them with acceptable
> signature files. The only problem now is the cmd or command (tried both)
> window won't close itself. I've tried various combinations with start, cmd
> and command, but no luck. How can I get the command window to close
> automatically?



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-18-2008, 09:21 PM
GHalleck
 
Posts: n/a
Re: How to close cmd or command window?

Peter Jensen wrote:

> X-No-Archive: Yes
>
> I use a network computer at work with Windows XP professional. The
> signature files for Outlook are unacceptable. I tried changing them, but
> no luck - they are changed back each time Outlook is started. I also
> tried changing the .ini file, but it too is changed back.
>
> I devised a work around using a .bat file to remove the read only
> attribute from the signature files and overwriting them with acceptable
> signature files. The only problem now is the cmd or command (tried both)
> window won't close itself. I've tried various combinations with start,
> cmd and command, but no luck. How can I get the command window to close
> automatically?


Without looking at the actual *.bat file, it is probably missing the
command "exit" (minus the quotes) as its last line. "Exit" should close
the Command Prompt window.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 01:28 AM
Stan Brown
 
Posts: n/a
Re: How to close cmd or command window?
Mon, 18 Feb 2008 21:09:42 +0100 from Peter Jensen <user@example.net>:
> X-No-Archive: Yes


Bwaa-haa-haa.

> I devised a work around using a .bat file to remove the read only
> attribute from the signature files and overwriting them with
> acceptable signature files. The only problem now is the cmd or
> command (tried both) window won't close itself. I've tried various
> combinations with start, cmd and command, but no luck. How can I
> get the command window to close automatically?


The command is EXIT.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com
A: Maybe because some people are too annoyed by top posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top posting such a bad thing?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 08:12 AM
Andy
 
Posts: n/a
Re: How to close cmd or command window?
On Mon, 18 Feb 2008 21:09:42 +0100, Peter Jensen <user@example.net>
wrote:

>X-No-Archive: Yes
>
>I use a network computer at work with Windows XP professional. The
>signature files for Outlook are unacceptable. I tried changing them, but
>no luck - they are changed back each time Outlook is started. I also
>tried changing the .ini file, but it too is changed back.
>
>I devised a work around using a .bat file to remove the read only
>attribute from the signature files and overwriting them with acceptable
>signature files. The only problem now is the cmd or command (tried both)
>window won't close itself. I've tried various combinations with start,
>cmd and command, but no luck. How can I get the command window to close
>automatically?


Try typing exit.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 05:51 PM
Peter Jensen
 
Posts: n/a
Re: How to close cmd or command window?
X-No-Archive: Yes

Peter Foldes wrote:
> By default the cmd window will not close automatically by itself. You will need a script to do it. You can try the scripting newsgroup for help on this
>


Thanks to all who responded. Below is an example batch with exit on the
last line. Wordpad starts, but unfortunately, exit does not close the
cmd window.

@echo off
copy /y c:\temp.tmp c:\temp2.tmp
"C:\Programmer\Windows NT\Tilbehør\wordpad.exe"
exit


Which scripting ng would be recommended to ask for help in?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-25-2008, 01:53 AM
User
 
Posts: n/a
Re: How to close cmd or command window?

>By default the cmd window will not close automatically by itself. You will need a script to do it. You can try the scripting newsgroup for help on this


Exit did not work. I discovered a solution, in case anyone is
interested. Those who responded may want to take note in the event
this question pops up again.

@echo off
rem some batch command
rem some batch command
start "" "Some Windows Application.exe"
exit


The start command above closes the cmd prompt window when run from the
GUI. However, when run from an open cmd window, the exit is required
to close that window.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:25 AM.


Registry Mechanic - Free Scan Now
Driver Scanner 2009 - Free Scan Now




Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74