comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Spawning without a cmd.exe window
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Spawning without a cmd.exe window [message #85252] Thu, 18 July 2013 16:47 Go to next message
wlandsman is currently offline  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 #85253 is a reply to message #85252] Thu, 18 July 2013 16:53 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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 #85254 is a reply to message #85252] Thu, 18 July 2013 17:52 Go to previous messageGo to next message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Thu, 18 Jul 2013 16:47:12 -0700 (PDT), wlandsman wrote:

> 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

Yes, set the /NOSHELL keyword and there is no such window.

If you don't want IDL to wait for the spawned process to finish, set
the /NOWAIT keyword also.

Cheers, Heinz
Re: Spawning without a cmd.exe window [message #85255 is a reply to message #85253] Thu, 18 July 2013 17:52 Go to previous messageGo to next message
wlandsman is currently offline  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 #85256 is a reply to message #85255] Thu, 18 July 2013 17:58 Go to previous messageGo to next message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
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
Re: Spawning without a cmd.exe window [message #85258 is a reply to message #85256] Thu, 18 July 2013 18:08 Go to previous message
wlandsman is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: command line window in IDL8 IDLDE?
Next Topic: Running Java bridge in Envi + IDL mode

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:33:14 PDT 2025

Total time taken to generate the page: 0.00689 seconds