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 
Return to the default flat view Create a new topic Submit Reply
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 [[
> [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Stepwise regression
Next Topic: fun with random numbers

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

Current Time: Sat Nov 29 15:10:46 PST 2025

Total time taken to generate the page: 0.32267 seconds