title: Using WbExport and WbInclude Commands in SQL Workbench Batch Mode
body: <p>I'm operating on a Windows Machine, trying to export the results of a query by running SQL Workbench in Batch mode.  After reading the SQL Workbench documentation, it sounds like <strong>WbExport</strong> is the best command for exporting results from a query.</p>
  
  <p>Another requirement is the query I want to run is in an external .sql file.  Again, according the SQL documentation, in batch mode, I can either use the <strong>WbInclude</strong> command or <strong>-script</strong> parameter to run a query from an external .sql file.  However, I'm not able to get either of these to work correctly with <strong>WbExport</strong>.  I've tried running SQL Workbench in Batch mode using both sqlwbconsole64.exe and sqlworkbench.jar.  Please see the four examples below:</p>
  
  <pre><code>java -jar sqlworkbench.jar -profile='connection-profile' -command='WbExport -file=test_export.txt -type=text -delimiter=\t; WbInclude test.sql;'
  
  java -jar sqlworkbench.jar -profile='connection-profile' -command='WbExport -file=test_export.txt -type=text -delimiter=\t' -script='test.sql'
  
  sqlwbconsole64 -profile='connection-profile' -command='WbExport -file=test_export.txt -type=text -delimiter=\t; WBInclude test.sql;'
  
  sqlwbconsole64 -profile='connection-profile' -command='WbExport -file=test_export.txt -type=text -delimiter=\t' -script='test.sql'
  </code></pre>
  
  <p>Thanks in advance for your help!</p>