I am creating a batch file that will automatically run the following commands:
SET PATH=%PATH%;C:\Program Files\PostgreSQL\9.0\bin
initdb -D "data" -U USERNAME –E UTF-8
pg_ctl -D "data" -l logfile start
createdb -E UTF-8 -e -O USERNAME -U USERNAME -w sampledb
When I get to this point, it prompts for a password -- is there a way I can hardcode this password in, so I don't have to manually enter it in?
Thanks! Any insight would be appreciated.