138701
Goto Top

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?

Content-Key: 442860

Url: https://administrator.de/contentid/442860

Printed on: April 26, 2024 at 10:04 o'clock

Mitglied: 139374
Solution 139374 Apr 19, 2019 updated at 17:51:04 (UTC)
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  
Mitglied: 138701
138701 Apr 19, 2019 at 17:53:37 (UTC)
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
Mitglied: 139374
139374 Apr 19, 2019 updated at 22:01:18 (UTC)
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 ...