title: Register and run PostgreSQL 9.0 as Windows Service
body: <p>For a while i have my db running on a command window because im not figuring out how to run it as a windows service.</p>
  
  <p>Since i have the zip file version downloaded. how can i register the pg_ctl command as a windows service?</p>
  
  <p>By the way, im using the following line to start the server:</p>
  
  <pre><code>"D:/Program Files/PostgreSQL/9.0.4/bin/pg_ctl.exe" -D "D:/Program Files/PostgreSQL/9.0.4/db_data" -l logfile start
  </code></pre>
  
  <p>Thanks in advance.</p>