Re: pg_ctl start broken on windows - Mailing list pgsql-hackers-win32

From Andrew Dunstan
Subject Re: pg_ctl start broken on windows
Date
Msg-id 40C76854.4080908@dunslane.net
Whole thread Raw
In response to Re: pg_ctl start broken on windows  ("Gary Doades" <gpd@gpdnet.co.uk>)
Responses Re: pg_ctl start broken on windows  ("Gary Doades" <gpd@gpdnet.co.uk>)
List 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.
>>
>>
>>


pgsql-hackers-win32 by date:

Previous
From: "Gary Doades"
Date:
Subject: Re: pg_ctl start broken on windows
Next
From: "Gary Doades"
Date:
Subject: Re: pg_ctl start broken on windows