title: How to send a command line command multiple times
body: <p>I have been working on a project that uses a program called TeraTerm to send commands to a TV via a serial port. I have discovered that when I open the program manually after a reboot, I have to open the correct port and then send the .dat command file several times before it actually takes (Turns off the TV).</p>
  
  <p>The commands I am using are from <a href="https://ttssh2.osdn.jp/manual/en/commandline/teraterm.html" rel="nofollow">this</a> page.</p>
  
  <p>Anyway, I ran the command </p>
  
  <pre><code>TTERMPRO /C=7 /DS /FD=C:\Commands\TurnOffTest3.dat  /FD=C:\Commands\TurnOffTest3.dat /FD=C:\Commands\TurnOffTest3.dat
  </code></pre>
  
  <p>hoping that it would allow me to send the file multiple times. The TeraTerm window did open as usual, but the file was either not sent or had no effect.</p>
  
  <p>There is a very high likelyhood that I am sending the commands incorrectly, as I am very new to the command prompt itself. Is there a way that I can call the command to send a file multiple times? If I am not interpreting the interface given on the website correctly or even if the way I am using the commands is just flat out wrong, any and all advice is welcome.</p>
  
  <p>Side note: yes, I am sure that the command file that I am sending is the correct one because when I send the file manually (i. e. use the GUI) the TV turns off as expected.</p>
  
  <p>EDIT: I have tried sending the file with and without quotes in its name.</p>