Lisp HUG Maillist Archive

sys:call-system with console application


Hello,

How can i hide the console window when launching console
application from lispworks using sys:call-system? (on windows)
I don't need to intercept the output of that application, just hide it's
window not to annoy people.

Thanks in advance for any assistence.

Regards,

Victor


Re: sys:call-system with console application

At 10:32 18/10/2006, Victor wrote:


>Hello,
>
>How can i hide the console window when launching console
>application from lispworks using sys:call-system? (on windows)
>I don't need to intercept the output of that application, just hide it's
>window not to annoy people.
>
>Thanks in advance for any assistence.
>
>Regards,
>
>Victor


Could you use win32:shell-execute instead?

E.g.  this gives a console

(WIN32:SHELL-EXECUTE  0 "OPEN" "cmd.exe" 
"C:\\users\\paulm\\hostdef-hudson.cmd" "C:\\users\\paulm\\" 1)

this does not

(WIN32:SHELL-EXECUTE  0 "OPEN" "cmd.exe" 
"C:\\users\\paulm\\hostdef-hudson.cmd" "C:\\users\\paulm\\" 0)

The details of ShellExecute are documented in MSDN

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/Shell/reference/functions/shellexecute.asp

HTH

paulm


Updated at: 2020-12-10 08:47 UTC