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


Download ADDLINE.ZIP and unzip it.

The ADDLINE.TXT file contains:

ADDLINE.EXE : Text file Processor : by Steven Wettberg

Usage: ADDLINE \[LINE TO ADD\] \[WHAT LINE NUMBER\] \[FILE TO PROCESS\]

ADDLINE adds the specified line at the line number you specify, additionally
you 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.bat
This 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:\zipnew\wireless.txt

The following line appeared as line number 1 in the c:\zipnew\wireless.txt file:

THIS WILL BE LINE NUMBER 1 IN WIRELESS.TXT



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish