html - batch file write to text file -


This is my first time talking about this. Actually I'm making a batch file HTML creator for church songs. This is what I got stuck with:

  echo & lt; Br> % Var17%> gt; Runfiles \ temporary2.txt   

Actually var is a line of 17 songs and I want to add a line break in front of it. I split the template creator into three parts:

  • First half
  • Bol
  • Second half

    Here's the code:

      @echo off copy "I: \ build \ files \ * .txt" ren * .txt temp.txt Setlocal enabled labeled expansion vidx = 0 for / F "tokens = * "Do% temp.txt in %% (SET / A vidx =! Vidx! + 1 set var! Vidx! = %% A) Set echo < Br> % Var17%> & gt; Runfiles \ Temporary 2.txt TYPE Runfiles \ temp1.txt & gt; Run.html TYPE temp.txt & gt; & Gt; Run.html Type Runfiles \ temp2.txt & gt; & Gt; Run.html Punctuation   

    Temporary 1 is the beginning and temp2 is the end, so I have a song document and I have a & lt; Br> I want to insert the element in front of everyone.

    The reason for this is that I have some 100 songs to process and it takes a lot of time to do it manually.

      echo ^ < Br ^ & gt;   

    The Surgeflux DOS / Win command line has escape characters.

Comments