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

Home » Public Forums » archive » Re: How to run a program for datasets located in different folders at a single stretch
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: How to run a program for datasets located in different folders at a single stretch [message #71913] Thu, 29 July 2010 16:49
R.G.Stockwell is currently offline  R.G.Stockwell
Messages: 163
Registered: October 2004
Senior Member
"sid" <gunvicsin11@gmail.com> wrote in message
news:b4e727fc-9401-4128-bf15-a5a7059b1926@z34g2000pro.google groups.com...
> Hi,
> I have a program which I need to run for several data sets (which
> are in different different folders), Since the number of folders in
> which the data sets present are huge in number, it is very difficult
> to go to that folder in which the dataset is and then copy the program
> to that particular folder and run it(orelse i need to copy the
> location of the dataset in the program, which is also a difficult
> task). So please give some ideas to run the program for all the
> datasets in different folder at a single stretch.
> regards
> sid


I am a bit confused as to why you want your program in the
same folder as your data sets, and what your problem really is.
Use the full path to access the data files and you shouldn't have
to move your program.

If you need to programmatically create or find the data files,
that is certainly possible.

You can search for your data files and create an array of them.

check out the file_search() help, here's an example

Result = FILE_SEARCH(!DIR, '*', /TEST_DIRECTORY)

will recursively search the main directory given by !DIR
(for me it is C:\Program Files\ITT\IDL\IDL80)
and it find all the files located there under all subdirectories.
For instance:

C:\Program Files\ITT\IDL\IDL80\bin
C:\Program Files\ITT\IDL\IDL80\bin\bin.x86
C:\Program Files\ITT\IDL\IDL80\bin\bin.x86\configuration
C:\Program Files\ITT\IDL\IDL80\bin\bin.x86\dicomex
... etc


cheers,
bob
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: NSIDC Looking for Science Programmers
Next Topic: yet another 2d matching question

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

Current Time: Wed Oct 08 09:21:41 PDT 2025

Total time taken to generate the page: 0.00583 seconds