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

Home » Public Forums » archive » Re: help with windows directory command from within idl
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
Re: help with windows directory command from within idl [message #18561] Thu, 13 January 2000 00:00
Nando Iavarone is currently offline  Nando Iavarone
Messages: 48
Registered: December 1998
Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Peter Brooker wrote:
<blockquote TYPE=CITE>I am running IDL on an NT. I use the CD command to
change directories
<br>from within IDL. Staying inside IDL, I now want to list which files
are
<br>in this remote directory.&nbsp; The IDL command
<p>IDL> SPAWN,'DIR'
<p>Opens up a DOS window but then closes it immediatly.
<p>How can I get IDL to keep the DOS window open so I can look at the
<br>files?
<p>Is there a way other than SPAWN to list the files in the new directory?
<p>thanks-Peter Brooker</blockquote>
You can simply use the "findfile" too.
<p>fileNames = findfile()
<p>fileNames will be a string array in which each element is a file name
in your directory
<p>Bye.
<pre>--&nbsp;
Nando Iavarone
Advanced Computer System - SPACE DIVISION
via Lazzaro Belli, 23
00040&nbsp; Frascati - RM
Tel: +39-6-944091 (switchboard)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 9440968 (direct)
E-mail:&nbsp;
&nbsp;&nbsp;&nbsp; f.iavarone@acsys.it
&nbsp;&nbsp;&nbsp; FrdndVrn@altavista.net</pre>
&nbsp;</html>
Re: help with windows directory command from within idl [message #18570 is a reply to message #18561] Thu, 13 January 2000 00:00 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Peter Brooker wrote:
>
> I am running IDL on an NT. I use the CD command to change directories
> from within IDL. Staying inside IDL, I now want to list which files are
> in this remote directory. The IDL command
>
> IDL> SPAWN,'DIR'
>
> Opens up a DOS window but then closes it immediatly.
>
> How can I get IDL to keep the DOS window open so I can look at the
> files?
>
> Is there a way other than SPAWN to list the files in the new directory?
>
> thanks-Peter Brooker

You can try,

dialog_pickfile()
findfile()

R. Bauer
  • Attachment: R.Bauer.vcf
    (Size: 0.00KB, Downloaded 70 times)
Re: help with windows directory command from within idl [message #18574 is a reply to message #18561] Wed, 12 January 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Peter Brooker (ra5589@email.sps.mot.com) writes:

> I am running IDL on an NT. I use the CD command to change directories
> from within IDL. Staying inside IDL, I now want to list which files are
> in this remote directory. The IDL command
>
> IDL> SPAWN,'DIR'
>
> Opens up a DOS window but then closes it immediatly.
>
> How can I get IDL to keep the DOS window open so I can look at the
> files?
>
> Is there a way other than SPAWN to list the files in the new directory?

I use Paul Sorenson's fabulous little tool, XCD. I personally
couldn't live without it. :-)

http://www.dfanning.com/documents/programs.html

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL Shareware -- Gov't Labs
Next Topic: IDL performance numbers....

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

Current Time: Fri Oct 10 04:47:32 PDT 2025

Total time taken to generate the page: 1.20470 seconds