title: Run batch file with psql command without password
body: <p>I am trying to execute this <code>psql</code> command using a batch script:</p>
  
  <pre class="lang-sh prettyprint-override"><code>psql --host=localhost --dbname=&lt;dbname&gt; --port=&lt;Port Number&gt;
       --username=&lt;dbuser&gt; --file=C:\PSQL_Script.txt --output=C:\PSQL_Output.txt
  </code></pre>
  
  <p>The problem is that it's asking for the password every time I execute the batch script. How can I password argument through the batch file?</p>