Re: pg_ctl start broken on windows
От | Andrew Dunstan |
---|---|
Тема | Re: pg_ctl start broken on windows |
Дата | |
Msg-id | 40C76854.4080908@dunslane.net обсуждение исходный текст |
Ответ на | Re: pg_ctl start broken on windows ("Gary Doades" <gpd@gpdnet.co.uk>) |
Ответы |
Re: pg_ctl start broken on windows
|
Список | 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 по дате отправления: