Sign in to follow this  
Followers 0
Swerve

Arrgghh, gone stupid

11 posts in this topic

All the google results say run this:-

Ping www.apple.com > ping.txt

The ' > ping.txt' coomand will get results saved to the hard disk, well it aint there, nor with a tracert.

Whats going on guys?

0

Share this post


Link to post
Share on other sites

It should be there Swerve. Try either typing just ip.txt at the command line right after running

ping www.apple.com > ip.txt

and then seeing where the file that opens up is saved, or using the search included with Windows (start>search or wherever it is).

0

Share this post


Link to post
Share on other sites

I know riddiculous isn't it. Found tracert, ping must be getting saved somewhere else but search does'nt find them.

God knows.

Thanks for your help.

0

Share this post


Link to post
Share on other sites

Well, the command prompt opens up at C:\Documents and Settings\******>

Check that.

or do this:

D:

ping www.whatever.org > ping.txt

[code]

so that you know where to look

0

Share this post


Link to post
Share on other sites

Is it me or something? lol

When I run:-

ping www.apple.com

It shows up in the command prompt window as normal, does it's thing, then closes. When I run:-

ping www.apple.com > ping.txt

It does'nt show anything in the command prompt window, but closes almost instantaniously.

The second command, that is EXACTLY how it should be entered, right? A SPACE, BEFORE and AFTER the greater than sign, right?

Crazy

Edited by Swerve
0

Share this post


Link to post
Share on other sites

Ok, your command worked fine for me

Pinging www.apple.com.akadns.net [17.254.0.91] with 32 bytes of data:

Request timed out.

Request timed out.

Request timed out.

Request timed out.

Ping statistics for 17.254.0.91:

Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

0

Share this post


Link to post
Share on other sites

Type 'cmd /k cd\' in the run box to open up cmd without closing it

C:\>ping -n 1 adobe.com ## your initial ping

Pinging adobe.com [192.150.18.117] with 32 bytes of data:

Reply from 192.150.18.117: bytes=32 time=63ms TTL=241

Ping statistics for 192.150.18.117:

Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 63ms, Maximum = 63ms, Average = 63ms

C:\>dir /b *.txt ## the directory listing

File Not Found

C:\>ping -n 1 adobe.com > outputfile.txt ## redirect stdout (&1) to outputfile.txt, >> for append

C:\>dir /b *.txt ## the new directory listing

outputfile.txt

C:\>type outputfile.txt ## display the contents of the new output file

Pinging adobe.com [192.150.18.117] with 32 bytes of data:

Reply from 192.150.18.117: bytes=32 time=50ms TTL=241

Ping statistics for 192.150.18.117:

Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 50ms, Maximum = 50ms, Average = 50ms

C:\>exit ## close the cmd window

0

Share this post


Link to post
Share on other sites

Just define where you want it output to...

ping somedomain.com > C:\ping_output.txt

0

Share this post


Link to post
Share on other sites

Swerve, it isn't supposed to show on the console, the console output is placed in the file named whatever you > to

0

Share this post


Link to post
Share on other sites

It's really simple:

Microsoft Windows (Linux wannbe) [Version 1.3.3700]
(C) Copyright 1985-2001 Apple Inc.

C:\>ping google.com > "%USERPROFILE%"\Desktop\ip.txt

ip.txt is now on your desktop.

Edited by mubix
0

Share this post


Link to post
Share on other sites
It's really simple:

Microsoft Windows (Linux wannbe) [Version 1.3.3700]
(C) Copyright 1985-2001 Apple Inc.

C:\>ping google.com > "%USERPROFILE%"\Desktop\ip.txt

Someone's an English speaking wanna-be. ;)

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0