Dos command to Save the website content

  • Thread starter Dani-with-google
  • Start date
D

Dani-with-google

Dear all,

Can anyone help me out please.

I want to run a DOS command in the command line WinXp and Win2K which
will copy the content of the website as an text file.

For example when I go to the website www.whatismyip.com I get the
Public IP of my internet connection. So these content which is
displayed has to be saved as a text file and saved in a particular
location. I want to do this operation in the command line using some
DOS command.

Please help me out. I very much need them very urgently.

Thanks so much in advanced.

Dani
 
A

Alias

Dani-with-google said:
Dear all,

Can anyone help me out please.

I want to run a DOS command in the command line WinXp and Win2K which
will copy the content of the website as an text file.

For example when I go to the website www.whatismyip.com I get the
Public IP of my internet connection. So these content which is
displayed has to be saved as a text file and saved in a particular
location. I want to do this operation in the command line using some
DOS command.

Please help me out. I very much need them very urgently.

Thanks so much in advanced.

Dani

You're SOL because XP doesn't use DOS.

Alias
 
P

Pegasus \(MVP\)

Dani-with-google said:
Dear all,

Can anyone help me out please.

I want to run a DOS command in the command line WinXp and Win2K which
will copy the content of the website as an text file.

For example when I go to the website www.whatismyip.com I get the
Public IP of my internet connection. So these content which is
displayed has to be saved as a text file and saved in a particular
location. I want to do this operation in the command line using some
DOS command.

Please help me out. I very much need them very urgently.

Thanks so much in advanced.

Dani

There is, of course, no DOS under WinXP, only a Command
Prompt. I don't think there are any native Windows commands
that will do what you're trying to do but if you tell us more
specifically what you need your external address for then someone
may be able to suggest a suitable solution. It could be as simple as
extracting a number out of a ping command.
 
W

Wesley Vogel

Go to www.whatismyip.com

Click on: Copy Your IP

Or highlight: Your IP Is whatever, right click and select Copy.

Paste it into Notepad.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
D

Don Taylor

Dani-with-google said:
I want to run a DOS command in the command line WinXp and Win2K which
will copy the content of the website as an text file.
For example when I go to the website www.whatismyip.com I get the
Public IP of my internet connection. So these content which is
displayed has to be saved as a text file and saved in a particular
location. I want to do this operation in the command line using some
DOS command.
Please help me out. I very much need them very urgently.

Ignore all this
"Well We know there isn't anything we call DOS, and if you were
just as smart as we are you would call what looks the same as DOS
to you what we call it" crap.

Google for wget, and find an XP compatible binary.

NAME
wget - GNU Wget Manual

SYNOPSIS
wget [option]... ...

DESCRIPTION
GNU Wget is a free utility for non-interactive download of files from
the Web. It supports HTTP, HTTPS, and FTP protocols, as well as
retrieval through HTTP proxies.

Wget is non-interactive, meaning that it can work in the background,
...

I hope this posting actually helps you get what you need done.
 
P

Pegasus \(MVP\)

Don Taylor said:
Dani-with-google said:
I want to run a DOS command in the command line WinXp and Win2K which
will copy the content of the website as an text file.
For example when I go to the website www.whatismyip.com I get the
Public IP of my internet connection. So these content which is
displayed has to be saved as a text file and saved in a particular
location. I want to do this operation in the command line using some
DOS command.
Please help me out. I very much need them very urgently.

Ignore all this
"Well We know there isn't anything we call DOS, and if you were
just as smart as we are you would call what looks the same as DOS
to you what we call it" crap.

Google for wget, and find an XP compatible binary.

NAME
wget - GNU Wget Manual

SYNOPSIS
wget [option]... ... DESCRIPTION GNU Wget is a free...ind /i "your ip is"') do echo External IP=%%a
 
D

Dani-with-google

Thanks Don, It really worked and thanks a lot for understanding me what
I really wanted to communicate, as I was not really putting out the
correct technical words. Thanks a lot once again.

Dani
Don Taylor said:
Dani-with-google said:
I want to run a DOS command in the command line WinXp and Win2K which
will copy the content of the website as an text file.
For example when I go to the website www.whatismyip.com I get the
Public IP of my internet connection. So these content which is
displayed has to be saved as a text file and saved in a particular
location. I want to do this operation in the command line using some
DOS command.
Please help me out. I very much need them very urgently.

Ignore all this
"Well We know there isn't anything we call DOS, and if you were
just as smart as we are you would call what looks the same as DOS
to you what we call it" crap.

Google for wget, and find an XP compatible binary.

NAME
wget - GNU Wget Manual

SYNOPSIS
wget [option]... ... DESCRIPTION GNU Wget is a free...your ip is"') do echo External IP=%%a[/QUOTE]
 
P

Pegasus \(MVP\)

Mmh. If you want to thank Don then you should reply to Don.
I'm not Don.


Dani-with-google said:
Thanks Don, It really worked and thanks a lot for understanding me what
I really wanted to communicate, as I was not really putting out the
correct technical words. Thanks a lot once again.

Dani
Don Taylor said:
I want to run a DOS command in the command line WinXp and Win2K which
will copy the content of the website as an text file.

For example when I go to the website www.whatismyip.com I get the
Public IP of my internet connection. So these content which is
displayed has to be saved as a text file and saved in a particular
location. I want to do this operation in the command line using some
DOS command.

Please help me out. I very much need them very urgently.

Ignore all this
"Well We know there isn't anything we call DOS, and if you were
just as smart as we are you would call what looks the same as DOS
to you what we call it" crap.

Google for wget, and find an XP compatible binary.

NAME
wget - GNU Wget Manual

SYNOPSIS
wget [option]... ... DESCRIPTION GNU Wget is a free...s"') do echo External IP=%%a[/QUOTE] [/QUOTE]
 
D

Dani-with-google

Dear Pegasus,
I am sorry for misunderstanding you as Don.
Sorry once again
The codes mentioned by you really worked and thanks a lot for
understanding me what
I really wanted to communicate, as I was not really putting out the
correct technical words. Thanks a lot once again.

Dani
Don Taylor said:
Dani-with-google said:
I want to run a DOS command in the command line WinXp and Win2K which
will copy the content of the website as an text file.
For example when I go to the website www.whatismyip.com I get the
Public IP of my internet connection. So these content which is
displayed has to be saved as a text file and saved in a particular
location. I want to do this operation in the command line using some
DOS command.
Please help me out. I very much need them very urgently.

Ignore all this
"Well We know there isn't anything we call DOS, and if you were
just as smart as we are you would call what looks the same as DOS
to you what we call it" crap.

Google for wget, and find an XP compatible binary.

NAME
wget - GNU Wget Manual

SYNOPSIS
wget [option]... ... DESCRIPTION GNU Wget is a free...your ip is"') do echo External IP=%%a[/QUOTE]
 
P

Plato

Dani-with-google said:
I want to run a DOS command in the command line WinXp and Win2K which
will copy the content of the website as an text file.

There are NO dos commands in XP.
 
P

Pegasus \(MVP\)

Don Taylor said:
Google for wget and you may find joy.

Why? I gave him a turnkey solution that included a
fully functional batch file AND a link for wget.exe.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top