Spawning without a cmd.exe window [message #85252] |
Thu, 18 July 2013 16:47  |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
This is a question from someone who uses Windows about once a year.
I want to spawn from IDL to an external executable
spawn,'E:\ds9\ds9.exe'
and it works fine as the ds9 program is displayed. But I also get a cmd.exe window (which goes away when I exit the ds9 program). Is there a way to have the cmd.exe window not appear or to have it hidden?
Thanks, --Wayne
|
|
|
|
|
Re: Spawning without a cmd.exe window [message #85255 is a reply to message #85253] |
Thu, 18 July 2013 17:52   |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
Actually, if I would just look at the documentation, I would have found the Windows-only /HIDE keyword to SPAWN. --Wayne
On Thursday, July 18, 2013 7:53:13 PM UTC-4, David Fanning wrote:
> wlandsman writes:
>
>
>
>> This is a question from someone who uses Windows about once a year.
>
>>
>
>> I want to spawn from IDL to an external executable
>
>>
>
>> spawn,'E:\ds9\ds9.exe'
>
>>
>
>> and it works fine as the ds9 program is displayed. But I also get a cmd.exe window (which goes away when I exit the ds9 program). Is there a way to have the cmd.exe window not appear or to have it hidden?
>
>
>
> I don't think so. :-(
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
|
Re: Spawning without a cmd.exe window [message #85258 is a reply to message #85256] |
Thu, 18 July 2013 18:08  |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
Heinz,
Thanks. Using /NoShell instead of /HIDE also seems to speed things up a bit. --Wayne
On Thursday, July 18, 2013 8:58:51 PM UTC-4, Heinz Stege wrote:
> On Thu, 18 Jul 2013 17:52:31 -0700 (PDT), wlandsman wrote:
>
>
>
>> Actually, if I would just look at the documentation, I would have found the Windows-only /HIDE keyword to SPAWN. --Wayne
>
>>
>
> However the /HIDE keyword makes only half the job. The cmd.exe window
>
> lives on as an icon in the task bar. Try /NOSHELL.
>
>
>
> Cheers, Heinz
|
|
|