find out name of file from "lun" unit number [message #87420] |
Fri, 31 January 2014 18:27  |
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  |
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
|
|
|