How to save IP into a text file?

P

Poppe

Hello

I can save ip with ipconfig > name.txt
But this results for the whole ipconfig dialog being saved.

Is there a way to get just the IP itself? (x.x.x.x)
From Registry or any other way, like with some program?

In my scenario the PC has always only one IP in use, not several. And it's
WIN XP.
 
L

Lem

Poppe said:
Hello

I can save ip with ipconfig > name.txt
But this results for the whole ipconfig dialog being saved.

Is there a way to get just the IP itself? (x.x.x.x)
From Registry or any other way, like with some program?

In my scenario the PC has always only one IP in use, not several. And it's
WIN XP.

Run ipconfig in a Command Prompt window and copy/paste what you want
into your text file.

When you want to cut, copy, or paste to or from a Command Prompt window,
click the icon at the left of the Command Prompt window's Title Bar and
select Edit from the menu. "Mark" lets you click-n-drag to select text
in the window; "Enter" copies the selected text.
 
P

Poppe

This was a good workaround.

Is it possible to use wildcards in FIND?

Like find "?.?.?.?" - so i could get just the IP numbers?

Thanks
 

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