[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dialog_pickfile
Rikagaku wrote:
>
> Hello,
>
> I have a problem with filelist=Dialog_pickfile(/read,/multiple_files)
> If I selected one file located at the root of a hard disk
> (say: "c:\test1.txt") then
> >print, filelist
> c:\test1.txt
>
> BUT if I select more than one file at the root of the disk then
> >print, filelist
> c:\\test1.txt c:\\test2.txt c:\\test3.txt
>
> that is that "\\" ??? It only happens when the file are located at the
> root of a disk (multiple files from a sub-directory is OK).
>
> Of course: openR, lun, filelist[0], /get_lun does not work since
> "c:\\test1.txt" is not a valid filename under Win32
>
> Am I doing something wrong or is it a problem (fixed in IDL 5.4 ?)?
> Cheers
> Thomas Launey
>
Hi Thomas,
this is a bug.
workaround:
files=replace_string(files,'\\','\')
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_html/dbase/download/replace_string.tar.gz
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_html/dbase/download/replace_string.sav
For further routines and copyright and licence.
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.html
regards
Reimar