Skip site navigation (1) Skip section navigation (2)

Re: pg_ctl start broken on windows

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-hackers-win32 <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: pg_ctl start broken on windows
Date: 2004-06-09 19:43:16
Message-ID: 40C76854.4080908@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-hackers-win32
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.
>>
>>    
>>


In response to

Responses

pgsql-hackers-win32 by date

Next:From: Gary DoadesDate: 2004-06-09 20:13:12
Subject: Re: pg_ctl start broken on windows
Previous:From: Gary DoadesDate: 2004-06-09 18:43:29
Subject: Re: pg_ctl start broken on windows

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group