ZTree.com  | ZEN  | About...  

 Index   Back

[General] is there a way to append two lines to many text files?   [General]

By: Ryan       
Date: Jan 08,2022 at 18:05

is there a way to insert or append or add these two lines to about 200 batches?

SET K0="..\pathdata.TXT"
FOR /F "Tokens=*" %%V IN ('TYPE %K0%') DO (SET K1=%%V)

the combination of the string replacer and #zttag has been working so well except for the quotation mark "" replacements. but adding lines are my limit.


or is there a way to replace @echo off with three lines
@echo off
SET K0="..\pathdata.TXT"
FOR /F "Tokens=*" %%V IN ('TYPE %K0%') DO (SET K1=%%V)

any utilities that can do this with #zttag?

601 views      
 

Messages in this Thread

 
96,664 Postings in 12,235 Threads, 350 registered users, 207 users online (0 registered, 207 guests)
Index | Admin contact |   Forum Time: Jun 16, 2024 - 3:25 pm UTC  |  Hits:64,852,469  (62,529 Today )
RSS Feed