Re: pg_ctl start broken on windows

Andrew Dunstan <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
I don't see that it buys you much. But maybe you'd like to submit a 
patch? (What is there isn't a desktop window, e.g. we are starting from 
the service manager, as has been suggested for pg_ctl?)

cheers

andrew


Gary Doades wrote:

>You might want to try ShellExecute first before delving into 
>CreateProcess
>
>e.g.
>
>ShellExecute(GetDesktopWindow(), "open", "cmd.exe", "arg1 arg2 arg3", NULL, SW_SHOWNORMAL);
>
>The path to the executable (e.g. cmd.exe) must be fully qualified and 
>use the .exe extension in this case. Also you must use backslashes. 
>You will need to use backslashes if you use CreateProcess anyway.
>
>If this doesn't work I can give you an example for CreateProcess.
>
>
>On 9 Jun 2004 at 14:07, Andrew Dunstan wrote:
>
>  
>
>>I really don't see what the problem is with calling CreateProcess - it 
>>should only be a few lines of code unless I'm much mistaken, and would 
>>get us out of this setup that is really fragile at best.
>>
>>    
>>


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.