138701

For-Schleife 7

Hallo zusammen,


Mit
ipconfig /displaydns | find "Eintragsname" >test.txt  

bekomme ich z.B. diese Datei:
    Eintragsname . . . . . : jimdo.com
    Eintragsname . . . . . : collector.bunchbox.co
    Eintragsname . . . . . : www.cenote.de
    Eintragsname . . . . . : www.cenote.de
    Eintragsname . . . . . : anycast.pixel.adsafeprotected.com
    Eintragsname . . . . . : static.plista.com
    Eintragsname . . . . . : static-origin.plista.com

Mit
for /f %%i in (test.txt) do echo %%is>>test2.txt
move test2.txt test.txt

Schreibe ich an jede Zeile dieser Datei ein "s" daran.

Bei anderen Dateien hat es funktioniert...

Was ist bei dieser Datei das Problem, warum kommt dabei nur noch:
Eintragsnames
Eintragsnames
Eintragsnames
Eintragsnames
Eintragsnames
Eintragsnames
Eintragsnames
heraus?
Auf Facebook teilen
Auf X (Twitter) teilen
Auf Reddit teilen
Auf Linkedin teilen

Content-ID: 442860

Url: https://administrator.de/forum/for-schleife-7-442860.html

Ausgedruckt am: 04.05.2025 um 01:05 Uhr

139374
Lösung 139374 19.04.2019 aktualisiert um 19:51:04 Uhr
Goto Top
Was ist bei dieser Datei das Problem, warum kommt dabei nur noch:
Weil du noch immer nicht das For Schleifen Tutorial hier im Forum gelesen hast.
for /f "delims=" %%i in (test.txt) do echo %%is>>test2.txt  
138701
138701 19.04.2019 um 19:53:37 Uhr
Goto Top
Hallo @139374,

Und wie kann ich statt ein s hinzuzufügen den Anfang entfernen:

jimdo.com
collector.bunchbox.co
www.cenote.de
www.cenote.de
anycast.pixel.adsafeprotected.com
static.plista.com
static-origin.plista.com
139374
139374 19.04.2019, aktualisiert am 20.04.2019 um 00:01:18 Uhr
Goto Top
Ja, hmm, da hatte dir doch oben ein Herr namens @139374 schon den Hinweis auf delims geliefert und du ignorierst es erneut, tja da kann man nur gratulieren und dir zur Nachprüfung viel Erfolg wünschen ...