| 1. |
Solve : Need help for insert? |
|
Answer» I want to insert text in front of every lines. Is there anyone know how to do easy batch file?@echo off>newfile.txt @echo off>newfile.txt thanks for your help. It's work but if I have so many files in the DIRECTORY then I want to insert text for every files. Is there any other varibles that I have to put in?use another loop to go through all your files.Quote from: akeker on April 08, 2009, 12:57:59 AM thanks for your help. It's work but if I have so many files in the directory then I want to insert text for every files. Is there any other varibles that I have to put in? Code: [Select]@echo off for %%$ in (*.txt) do ( echo Processing %%$ --^> new_%%$ 2>new_%%$ for /f "tokens=*" %%a in (%%$) do >>new_%%$ echo whatevertext%%a )Quote from: Reno on April 08, 2009, 01:10:47 AM Code: [Select]@echo off Thanks again. it's work very well indeed. I wish you have all you want. |
|