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

Home » Public Forums » archive » cd bug in IDL 5.5
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: cd bug in IDL 5.5 [message #31080 is a reply to message #31068] Tue, 18 June 2002 08:21 Go to previous messageGo to previous message
crono15m is currently offline  crono15m
Messages: 9
Registered: June 2002
Junior Member
> Dear Ben,
>
> it could be easier to use file_which
>
> x=file_which('mean.pro')
> print,x
> /usr/local/idl/idl/lib/mean.pro
>
> fpe=file_path_name_ext(x)
>
> print,fpe.path
> /usr/local/idl/idl/lib/


Reimar,
You're right, if file_which worked correctly it would be easier (and faster)
to use. Unfortunately, in win2k it doesn't seem to work right. Here are some
examples.

If you are in the IDL working directory it works fine.
IDL> print, file_which('copyToClipboard.exe')
C:\BEN_HILLDORE\KVI\KVI_PROGRAMS\Support Programs\copyToClipboard.exe

Now i'll move that file to 'c:\gs'

IDL> print, file_which('c:\', 'copyToClipboard.exe')
It returns a null.

If I specify the path directly to it, it works.

IDL> print, file_which('c:\gs', 'copyToClipboard.exe')
c:\gs\copyToClipboard.exe

This routine seems to suffer from the same problem as expand_file_path.


Ben Hilldore
Hope College Nuclear Research Group
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Format codes in IDL
Next Topic: RSI Announces HDF5 Support -- Free IDL 5.5 Plug-in Available

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

Current Time: Sun Oct 12 03:02:30 PDT 2025

Total time taken to generate the page: 0.87939 seconds