title: how to write a batch script to open a program and start typing inside that program?
body: <p>I am new to batch, I do repetitive tasks at work and I wanted to automate some of it. How do I write a script to open a program <strong>then start typing within that program</strong> in specific input like my login credentials, then run commands inside that program.</p>
  <p>The program I use is AIX UNIX to enter my login credentials then type in commands then create a log. Same program, same commands, same login info every time.</p>
  <p>Like so far I have:</p>
  <pre><code>@echo off
  start &quot;&quot; &quot;C:\Program Files(86)\ProgramName&quot;
  echo myusername
  </code></pre>
  <p>The program opens but nothing gets typed into the program when I run it. Even though the program is waiting for me to type in my username.</p>