SPAWN and windows [message #19136] |
Mon, 28 February 2000 00:00  |
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  |
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  |
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 [[
> [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
|
|
|