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

Home » Public Forums » archive » SPAWN and windows
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
SPAWN and windows [message #19136] Mon, 28 February 2000 00:00 Go to next message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Hi all, especially the members of the expert-programmers' association,


I am almost ready to release my IDL webmaker tool in its first
version, but there
are still a few things I need to clean up. One thing that bothers me
currently is
how Windows behaves when I spawn a command: I need to create several
directopries and copy several files in webmaker, and for each spawned
command, WINdows opens a DOS Window, flashes the result of the executed
command at me and closes it again. Besides getting you close to crazy
watching it happen on the screen, it also seems to allocate quite a few
system resources which, apparently, are released only much later. Is
there a way to spawn simple DOS commands without opening a window? In an
earlier post I saw something like spawn,'start <programname>' -- would
this help?

Thanks for any answer, win your EPA award!

Cheers,
Martin

--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
Re: SPAWN and windows [message #19243 is a reply to message #19136] Wed, 01 March 2000 00:00 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Martin Schultz wrote:

> Udo Grabowski wrote:
>>
>> And of course, also an argument to receive the result:
>>
>> spawn , ['command'], /NOSHELL, result
>> --
>

Hallo Martin,

NOSHELL works with windows. I am using this feature.

Und ich freue mich, dass Du auch einen webmaker in IDL schreibst. Da bin
ich ja dann nicht mehr alleine.

Viele Gr��e

Reimar
Re: SPAWN and windows [message #19260 is a reply to message #19136] Mon, 28 February 2000 00:00 Go to previous message
Brad Gom is currently offline  Brad Gom
Messages: 49
Registered: August 1997
Member
I got tired of this exact problem, so I took the time to write a simple
windows .DLL file that has some basic file I/O routines (goodbye platform
independance). Then I wrote IDL wrapper functions to delete, move, rename,
and copy files and directories, as well as return file information like
creation date and time, etc.
Previously, before learning how to use 'call_external', I increased the
speed of multiple file operations by writing all the commands into a batch
file, and then using spawn only once to execute the batch file. This saved
time by only popping up one dos window.

good luck

Brad



Martin Schultz wrote:

> Hi all, especially the members of the expert-programmers' association,
>
> I am almost ready to release my IDL webmaker tool in its first
> version, but there
> are still a few things I need to clean up. One thing that bothers me
> currently is
> how Windows behaves when I spawn a command: I need to create several
> directopries and copy several files in webmaker, and for each spawned
> command, WINdows opens a DOS Window, flashes the result of the executed
> command at me and closes it again. Besides getting you close to crazy
> watching it happen on the screen, it also seems to allocate quite a few
> system resources which, apparently, are released only much later. Is
> there a way to spawn simple DOS commands without opening a window? In an
> earlier post I saw something like spawn,'start <programname>' -- would
> this help?
>
> Thanks for any answer, win your EPA award!
>
> Cheers,
> Martin
>
> --
> [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
> [[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
> [[ Bundesstr. 55, 20146 Hamburg [[
> [[ phone: +49 40 41173-308 [[
> [[ fax: +49 40 41173-298 [[
> [[ martin.schultz@dkrz.de [[
> [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Stepwise regression
Next Topic: fun with random numbers

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

Current Time: Sat Oct 11 16:15:10 PDT 2025

Total time taken to generate the page: 7.59961 seconds