title: Can batch file input password automatically to cmd
body: <p>I often use "msra offerra/" command to connect my user's desktop. To do so, <strong>I have to use different username and password than my current windows session</strong>. What I usually do is, </p>
  
  <p>win button + R (to open Run)
  then </p>
  
  <pre><code>runas /user:domainname\username cmd
  </code></pre>
  
  <p>after that, cmder (terminal) asks me the password for following user. I input my password and only after that I use this command </p>
  
  <pre><code>msra /offerra
  </code></pre>
  
  <p>And it opens the window I need. </p>
  
  <p><strong>Here is my question:</strong> </p>
  
  <p>Can I somehow automate this procedure with one batch file? When I click on that .bat it opens runas..., input my given password and then gives msra offerra/ command?</p>