File Listings [message #6816] |
Wed, 28 August 1996 00:00  |
Brian C. Ballard
Messages: 3 Registered: August 1996
|
Junior Member |
|
|
Bon Jour,
RSI Tech support can not solve this, can you? My OS is UNIX (Sun Solaris
2.5), but I want my GUI to be portable to the PC.
---- Problem Summary ----
I don't know how to get directory listings under Win32.
---- Here's what I am trying to do ----
My GUI contains two sub-base widgets similar to the PICKFILE widget.
(In fact, I stole some code from PICKFILE to do it.) Each sub-base has:
1. A text widget to type in a file filter (eg *.tif);
2. A list widget for subdirectories (to navigate directories);
3. A list widget for file names (to select a file); and,
4. A text widget (to type in a path/file name).
This allows the user to select files from two independent directories at
the same time. In UNIX, I am spawning an 'ls' command to get the
subdirectories and file names. This works fine in UNIX.
---- Problem Detail ----
My user wants to run the same application on IDL for Windows. For
Windows and Mac OS, PICKFILE calls an undocumented C routine called
OS_PICKFILE which interfaces with the "common" windows dialog for Win32
or Mac OS. I don't want to use this since the user will have to open it
and close it for each file selected, and there is no way to show two
independent OS_PICKFILE widgets inside the same window.
---- Question ----
Does anyone know how to get a simple directory listing (in text format)
under windows? (Like "dir" in good old DOS.)
---- Possible Answer ----
Might I have to use an external C (or whatever) routine to get the file
list? I would REALLY like to stay in IDL for portability reasons.
Any suggestions will be appreciated.
Gracias,
Brian C. Ballard
Albuquerque, NM, USA
E-mail: bballard@orionint.com
WWW : http://www.orionint.com/~bballard/
|
|
|