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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers-win32 by date

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