JSI Tip 8033. ADDLINE.EXE command-line freeware adds a line at the line number you specify.

Jerold Schulman

May 12, 2004

1 Min Read
ITPro Today logo in a gray background | ITPro Today


Download ADDLINE.ZIP and unzip it.

The ADDLINE.TXT file contains:

ADDLINE.EXE : Text file Processor : by Steven WettbergUsage: ADDLINE [LINE TO ADD] [WHAT LINE NUMBER] [FILE TO PROCESS]ADDLINE adds the specified line at the line number you specify, additionallyyou must specify the full path to the file you wish to change.The program may be rerun often to ensure the line stays intact.Example: ADDLINE @Echo off 5 C:Autoexec.batThis example adds the line "@Echo off" as the fifth line of C:Autoexec.bat.

JSI Example:

When I typed:

addline this will be line number 1 in wireless.txt 1 c:zipnewwireless.txtThe following line appeared as line number 1 in the c:zipnewwireless.txt file:THIS WILL BE LINE NUMBER 1 IN WIRELESS.TXT



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like