title: Load init.q file at startup
body: <p>My <code>q.bat</code> file runs fine and it's contents are:</p>
  
  <pre><code>g:
  cd \q
  w32\q.exe %* -p 5000
  </code></pre>
  
  <p>Having defined some basic q functions in <code>init.q</code> file, I'd like to have them loaded and available every time I start kdb+/q.
  I've tried including the below line at the end of the <code>q.bat</code> file, but it does nothing:</p>
  
  <pre><code>q init.q
  </code></pre>
  
  <p>I've read about other ways, like setting <code>QINIT</code> environmental variable or editing <code>q.q</code> file, but I suspect that loading via <code>.bat</code> is cleaner.</p>