title: How to write a character "x" number of times
body: <p>I am trying to create a batch file that uses user input to create the following..</p>
  
  <ol>
  <li>How many records to create</li>
  <li>Name of filename to save text file as</li>
  <li>What character to use</li>
  <li>How many times to repeat character in option 3</li>
  </ol>
  
  <p>I am a self taught novice at batch making but I do understand some....
  the following is what I have, I know it is not correct and maybe it is just backwards...I probably need to set what to write, how many times to repeat on one line in the text, then repeat steps for the amount of records in a file.
  The end result will look something like the following:</p>
  
  <pre><code>0000000000  0000  000000000
  0000000000  0000  000000000
  </code></pre>
  
  <p>etc etc for the amount of total records by user input...
  %column1bytecount%  %column2bytecount%  %column3bytecount% REPEAT THIS %howmanyrecords%</p>
  
  <p>The following does not work. (I have to be close)</p>
  
  <pre><code>@Echo Off
  
  Set /P howmanyrecords=How Many Records Would You Like To Produce: 
  set /P savefilename=Please Type Name Of Sample Pin File To Save: 
  Set /P charactertowrite=What Character Would You Like To Use (typically 0 is used): 
  Set /P Column1bytecount=How Many Bytes In Column 1: 
  
  
  for /L %%A in (1,1,%howmanyrecords%) do (
  echo 0000000000  0000  00000000 &gt;&gt; %savefilename%
  </code></pre>
  
  <p>)</p>