Jump to content

NUR die IP-Adresse in eine .txt schreiben (cmd)


Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Recommended Posts

Posted

Hallo zusammen,

Ich steh gerade irgendwie ein bisschen auf dem Schlauch.

Ich habe folgendes Problem:

Ich möchte per Batch/cmd (keine anderen Tools oder "Sprachen") NUR meine ip-adresse in eine TXT schreiben, so dass Der Inhalt die Form xxx.xxx.xxx.xxx hat und sonst gar nichts in der Datei drin steht.

Vllt kann mir ja jemand zu mindest nen Anhanltspunkt geben.

Bin gerade etwas verballert...

Posted

Hi,

 

ist die PowerShell oder ggf. VBS auch eine Alternative?

PowerShell:

Get-WmiObject Win32_NetworkAdapterConfiguration -filter "IPenabled=true" | % {$_.IPAddress}

Viele Grüße

olc

Posted
Hi,

 

ist die PowerShell oder ggf. VBS auch eine Alternative?

PowerShell:

Get-WmiObject Win32_NetworkAdapterConfiguration -filter "IPenabled=true" | % {$_.IPAddress}

Viele Grüße

olc

 

Dahinter noch ein "| out-file ipaddr.txt"

Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...