Giskas 10 Posted May 6, 2009 Report Posted May 6, 2009 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... Quote
Cybquest 36 Posted May 6, 2009 Report Posted May 6, 2009 Hallo und Willkommen, nur mal als Anhaltspunkt: ipconfig | find "Adresse" > myIP.txt ...da musst jetzt allerdings den Rest der Zeile noch irgendwie weg bekommen ;) Quote
Giskas 10 Posted May 6, 2009 Author Report Posted May 6, 2009 ...da musst jetzt allerdings den Rest der Zeile noch irgendwie weg bekommen Und genau da liegt mein Problem ;) Quote
Perin 10 Posted May 6, 2009 Report Posted May 6, 2009 Hi Giskas, FOR ist Dein Freund ;-) cu, Perin Quote
olc 18 Posted May 6, 2009 Report Posted May 6, 2009 Hi, ist die PowerShell oder ggf. VBS auch eine Alternative? PowerShell: Get-WmiObject Win32_NetworkAdapterConfiguration -filter "IPenabled=true" | % {$_.IPAddress} Viele Grüße olc Quote
Dukel 460 Posted May 7, 2009 Report Posted May 7, 2009 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" Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.