How to save IP into a text file?

  • Thread starter Thread starter Poppe
  • Start date Start date
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.
 
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.
 
This was a good workaround.

Is it possible to use wildcards in FIND?

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

Thanks
 
Back
Top