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

Home » Public Forums » archive » find out name of file from "lun" unit number
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
find out name of file from "lun" unit number [message #87420] Fri, 31 January 2014 18:27 Go to next message
ankorrigan is currently offline  ankorrigan
Messages: 2
Registered: January 2014
Junior Member
Hi,
I need to extract a parameter from a filename in an idl procedure.
But only the lun is passed as a parameter to this procedure.
Is it possible to find out the name of a file using his lun?
let's say:
openr, lun, 'filename', /get_lun
file_name= find_file_name(lun)
how to write this "find_file_name" function?

Thanks a lot in advance!
Antoine
Re: find out name of file from "lun" unit number [message #87424 is a reply to message #87420] Fri, 31 January 2014 20:40 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Friday, January 31, 2014 9:27:24 PM UTC-5, ankorrigan wrote:
> Hi,
>
> I need to extract a parameter from a filename in an idl procedure.
>
> But only the lun is passed as a parameter to this procedure.
>
> Is it possible to find out the name of a file using his lun?
>
> let's say:
>
> openr, lun, 'filename', /get_lun
>
> file_name= find_file_name(lun)
>
> how to write this "find_file_name" function?

Did you try the FSTAT() function?

CM
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: pass a struct point which is in another struct,from C to IDL by DLM.
Next Topic: site for IDL download for free.

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

Current Time: Wed Oct 08 13:36:39 PDT 2025

Total time taken to generate the page: 0.00535 seconds