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

Home » Public Forums » archive » Naming batch files and main-level programs
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: Naming batch files and main-level programs [message #51070 is a reply to message #50997] Thu, 02 November 2006 13:34 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
>> But if your routine is called 'fred' and you save it in a file called
>> fred.idl.pro, when you call fred, IDL will be looking for fred.pro...
>> and therefore not find it.
>
> Right, you'd have to do @fred.bat or .run fred.main

No, he means that if you have a function/procedure "foo", it must be
saved in the file foo.pro if you want IDL to find it. If you save it in
bar.pro, IDL will not find it.

>>If I had this problem, I'd either just put the batch files in their own
>> directory which tells what they are (maybe called 'batch'), or tag the
>> batch files and leave the rest alone (although probably better with a
>> '_' separator than a '.', for the reason above. You can also use a file
>> with no extension to indicate a batch file - that's fine on UNIX; not
>> ideal on Windows.
>
>
> Hmm, I don't know Windows well at all... I wonder if the above would
> work... i.e., if you named a batch file fred.bat.pro and then did
> @fred.bat ... can you have multiple periods in a Windows file name or
> do you have to use underscores everywhere?
>
> Thanks for the ideas. Best -Tim.

For a batch file, it would work... not that in this case it is uselless
to save as a .pro... You can save it as foo.idl and type @foo.idl
the good point of .pro extension is that you don't have to type it...
@foo = @foo.pro

Now for your question, yes, you can have multiple points...

Here is another suggestion, close to Greg's one:
why don't you call your files b_name.pro for the batch files and
name.pro for the routines? elegant, small, obivous...

Jean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: an envi question- extracting the pixel values of seveal points with lat-lon values
Next Topic: dialog_pickfile problem

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

Current Time: Sun Apr 26 16:13:38 PDT 2026

Total time taken to generate the page: 4.07967 seconds