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

Home » Public Forums » archive » Re: not so IDL related... Command line auto-feed
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: not so IDL related... Command line auto-feed [message #61136 is a reply to message #61135] Mon, 07 July 2008 16:35 Go to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"Jean H" <jghasban@DELTHIS.ucalgary.ANDTHIS.ca> wrote in message
news:g4u75l$s37$1@news.ucalgary.ca...
> Hi all,
>
> sorry for the misuse of this forum... though one of the smart here may be
> of great help!
>
> Ok, I have to process about 200 files though a program called dem2xyzn
> (for USGS DEM files). This program runs only under windows (and dos), and
> have basically no support. You start the program, then it ask for the name
> of the input file, then for the name of the output file, then if you are
> sure you want to continue etc.
>
> I want to automate all of this...
> There seems to be no way of specifying the parameters values (input,
> output) when calling the program.
>
> Is there a way to have a text being written in the current dos window?
> something that would look like, in pseudo-code:
>
> -call the program
> -write input1
> -write input2
> -write any letter to tell the prog to continue
> =start again with another set of input?
>
> I have tried to do a batch file, but the "write input1" get executed after
> the program has resumed...
>
> Any help of hints would be greatly appreciated!!!
> Jean

I did something similar, had an executable that has several prompts.
I wrote an IDL program to write all of the responses to a text file,
then copied it to the clipboard, ran the exe in a cmd window,
and used the window menu to paste that huge text file into the
dos window. (the window menu is at the very top left part
of the dos window - it says Restore, Move, Resize, etc.)

It executed the program, and correctly inputted all
required info. I was able to run a thousand runs in about an hour
(rather than several weeks of typing stuff in by hand).


Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: What Else!? More IDL 7 Woes.
Next Topic: Help with program speed (Recursive Merging Function)

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

Current Time: Wed Oct 08 18:22:37 PDT 2025

Total time taken to generate the page: 0.00413 seconds