I have a problem with registering a postgreSQL Service
on windows. I am using PostgreSQL 8.4 on windows vista.

I created a database cluster using
D:\DMSTest\pgsqlnew\bin>initdb -U postgres -D "D:\DMSest\pgsqlnew/data"

Now I try to register the service in the windows services.
pg_ctl -N postsql -D "D:\DMSTst\pgsqlnew/data" register

I get the message "pg_ctl: could not open service manager"

i m using batch file to run this commands and this works successfully in windows 7 and xp

Any Suggestion