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

Home » Public Forums » archive » Which like command for IDL?
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: Which like command for IDL? [message #23205 is a reply to message #23106] Fri, 12 January 2001 06:09 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
"Jason P. Meyers" wrote:
>
> Happy New Year All,
>
> I was recently working with some examples from Dave Fanning's book
> (nice book Dave) when I realized it would be nice to have an IDL program
> that works like the unix "which" command. I had typed in the
> Display.pro program on page 66 only to find out that there is some other
> program (I suspect an RSI demo) also called Display.pro elsewhere on my
> IDL path. It would sure be nice to be able to quickly identify which
> program IDL is using from the path.
>
> Does anyone out there know of such a beast for IDL?
>


Dear Jason,

We have a general file search routine in our library.

; NAME:
; file_search
;
; PURPOSE:
; This function searches a file in the current directory or in a list
of directories
; This function does return the first file which was found to match
the search
; criterion. Use the wild cards '*' or /LIST keyword to return a full
list.
;
; CATEGORY:
; PROG_TOOLS/FILES
;
; CALLING SEQUENCE:
; Result=FILE_SEARCH(Name)
;
; INPUTS:
; Name: name of a file or wildcards
;
; KEYWORD PARAMETERS:
; DIRECTORIES: string (array) containing a list of directories to
be searched
; NO_CURRENT: if set the current directory is not searched !
; ENV_VAR: name of a environment variable containing a path
; USE_PATH: if this keyword is set the path of IDL is used for
search
; SEARCH_TREE: if this keyword is set the search is expanded to all
subdirs of the
; given directories, equivalent to a preceeding '+' in
the directory name
; FILE_COUNT: if set to named variable the number of file hits is
returned
; DIR_COUNT: if set to a named variable the number searched
directories is returned
; DIR_FOUND: if set to a named variable a string array of
searched dirs is returned
; RETURN_MESSAGE: if set to a named variable the message is returned



http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/file_search.tar.gz

For further routines and licensing please look at

http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml


regards
Reimar


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: How to make a pie chart
Next Topic: vn5.4 woes (today missing)

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

Current Time: Mon Apr 27 08:20:56 PDT 2026

Total time taken to generate the page: 3.20409 seconds