"Execute" is blocking, so it will continue to execute itself until you
will stop the execution.
You might wish to seperate the process by creating two executables,
and execute a program in the background so you could decide what to
do, like in a daemon way...
Ido
On 10/23/07, Leonardo M. Ramé <
> You might wish to seperate the process by creating two executables,
That's already done.
> and execute a program in the background so you could decide what to
> do, like in a daemon way...
Yes, the problem is I want to do it in a multiplatform way.
In Linux I can set CommandLine := 'httpserv
> > Hi, I'm trying to start a Win32 process and exit leaving the process
> > executing. The test
> > scenario
> > is a CGI calling a simple Http server (the Synapse Http server demo).
> >I have done this before but it has been months and I forget exactly what I
did.
Something like this below:
pro
> program ShellExec; {$mode objfpc}{$H+}
>
> uses
> pwumain, windows;
>
> begin
> WebWriteln(' Hello! ');
> ShellExecute(0 , 'open', 'cmd /k c:\winnt\notepad.exe', nil, nil,
> SW_SHOWNORMAL) ;
> end.
>
> Because cmd /k forks open a new separate cmd shell for you (not a child,
> AFAIK).
>
> Hi,
>
> Any ideas when (or if) PasWiki will be released to the public? I know
> about the Simple CMS downloads, but don't feel the urge to rewrite it
> into a full fledged wiki server with syntax parsing only to find
> PasWiki already does all that and could be released before I complete
> my wi
> Thanks L, do you know if I ShellExecute can create a process without showing
> the command window?
I'm sure you can hide it.. just a matter of finding the right Windows API
paramaters..
Probably something like..
SW_HIDE
Not tested, not sure. ;-)
_
> > Thanks L, do you know if I ShellExecute can create a process without showing
> > the command window?
>
> I'm sure you can hide it.. just a matter of finding the right Windows API
> paramaters..
>
> Probably something like..
> SW_HIDEy
>
> Not tested, not sure. ;-)
>
>
>
Actually, maybe cmd /c
Have you tested this simple way of doing it below
program test; {$mode objfpc} {$H+}
uses windows;
begin
ShellExecute(0 , 'open', 'notepad', nil, nil, SW_SHOWNORMAL) ;
ShellExecute(0 , 'open', 'notepad', nil, nil, SW_HIDE) ;
end.
The cmd /k may not even be needed... and it may not even work t
On 23/10/2007, L <[EMAIL PROTECTED]> wrote:
>
> I can release something.
That would be great thanks.
>
> But it won't have history/edit revisions..
> Do you think you will be using many advanced features like
> history/visual editing?
I wasn't considering that a high priority. Though for revisi
Hello,
I was wondering if there is an existed file monitor unit/library etc..
for Linux ?
I'm looking for such daemon/unit/library/code that will be able to do
as follows:
1. Monitor mask of files
2. LGPL or library that it's license allows me to use it also for
commercial use.
3. Ability to moni
On 10/24/07, ik <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I was wondering if there is an existed file monitor unit/library etc..
> for Linux ?
>
> I'm looking for such daemon/unit/library/code that will be able to do
> as follows:
> 1. Monitor mask of files
> 2. LGPL or library that it's license allo
11 matches
Mail list logo