A Windows XP help forum. PCbanter

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 » PCbanter forum » Microsoft Windows XP » General XP issues or comments
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

DOS Command



 
 
Thread Tools Display Modes
  #1  
Old January 29th 08, 11:03 PM posted to microsoft.public.windowsxp.general
Chaswift
external usenet poster
 
Posts: 1
Default DOS Command

When I type ipconfig in (Run) my Dos Window appears then drops
Ads
  #2  
Old January 29th 08, 11:38 PM posted to microsoft.public.windowsxp.general
Ken Blake, MVP
external usenet poster
 
Posts: 10,402
Default DOS Command

On Tue, 29 Jan 2008 15:03:22 -0800, Chaswift
wrote:

When I type ipconfig in (Run) my Dos Window appears then drops



The Window closes when the command finishes. There are two solutions:

1. Run the command with the /k switch

2. First open a command Window by typing CMD, then type ipconfig in
it.


--
Ken Blake, Microsoft MVP - Windows Desktop Experience
Please Reply to the Newsgroup
  #3  
Old January 29th 08, 11:41 PM posted to microsoft.public.windowsxp.general
Nepatsfan
external usenet poster
 
Posts: 3,023
Default DOS Command

"Chaswift" wrote in message
...
When I type ipconfig in (Run) my Dos Window appears then drops



You need to open a command prompt window first. Do either of the following.

Start - Run - Enter cmd.exe in the Open box.
Enter ipconfig /all at the prompt.

Start - Run - Enter cmd.exe /k ipconfig /all in the Open box.

Good luck

Nepatsfan



  #4  
Old January 30th 08, 06:49 AM posted to microsoft.public.windowsxp.general
VanguardLH
external usenet poster
 
Posts: 515
Default DOS Command

"Chaswift" wrote in message
...
When I type ipconfig in (Run) my Dos Window appears then drops



That is because you are running a DOS-mode program that opens a
console window to display its stdout (standard output). When the
program exits, the console window also closes. If you want the
console window to remain open, have something else keep it open: run
"cmd.exe" which is the command-line interpreter that also opens its
own console window. Then when you run other DOS-mode programs within
that shell, the console window remains open (because you exit the
program but not cmd.exe to which the console window belongs).

So, run "cmd.exe" and then run your DOS-mode program. There should
already been shortcuts in your Start menu to run a "Command prompt"
(aka DOS shell) which run the cmd.exe program.

 




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 Off
HTML code is Off






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


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