Solved: Command line window keeps closing

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

EatDrinkSmoke

Thread Starter
Joined
Oct 3, 2008
Messages
3
I am running tracert and other commands from the command line but the window keeps closing as soon as the task is completed. I want to capture some info to send to my ISP but don't get the chance. Running Win XP on a Compaq Presario - loads of disk space, memory and processor capacity. It worked fine until a couple of days ago but I haven't changed anything.
 
Joined
Sep 14, 2005
Messages
919
Code:
tracert www.somesite.com >outfile.txt
This will write all output information to outfile.txt. The file will be located in the current directory. You can get the needed information by viewing the file.

I dont have a direct answer to why the command prompt would instantly close though..
 

Frank4d

Retired Trusted Advisor
Joined
Sep 10, 2006
Messages
9,126
Are you running tracert from Start > Run? Or running cmd from Start > Run, and then running tracert at the command window prompt? The behavior you are seeing should not occur for the later.
 

EatDrinkSmoke

Thread Starter
Joined
Oct 3, 2008
Messages
3
Nice one - works exactly like you say. If I use cmd the window doesn't close - if i enter tracert directly at the run command it closes - bizarre. Many thanks
 

EatDrinkSmoke

Thread Starter
Joined
Oct 3, 2008
Messages
3
Thanks - tried this and it works if I use the cmd option first (see reply from Frank4d below) - if i try to do this from the run window it just closes the window and the output file isnt created - I dont think it is even doing the trace as it closes almost immediately. Very strange.
 

Frank4d

Retired Trusted Advisor
Joined
Sep 10, 2006
Messages
9,126
That's the way it works for nearly all Windows commands. However, opening any program or file that is not a Windows command from Start > Run opens and stays open.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top