Re: Rename files using IDL - is it possible? [message #72118 is a reply to message #72010] |
Fri, 06 August 2010 15:48   |
Heinz Stege
Messages: 189 Registered: January 2003
|
Senior Member |
|
|
On Fri, 6 Aug 2010 09:20:20 -0700 (PDT), Chris Torrence wrote:
> Hi LN,
>
> In IDL 7.1 the file I/O routines had some problems with special
> characters. These have all been fixed in IDL 8.0, and if it is
> possible, I would recommend downloading IDL 8.0 and giving that a try.
>
> Hope this helps.
>
> Chris Torrence
> IDL Software Development Manager
> ITTVIS
Hi Chris,
I'm sorry, but it is IDL 8.0 which has a problem. Version { x86 Win32
Windows Microsoft Windows 8.0 Jun 17 2010 32 64}. Here is a
demonstration. It is a little bit complicated, because one can't
create the necessary filenames with IDL 8.0.
1. Create a file with the name test?.txt by use of the Windows
Explorer. The 5th character has to be a "Latin Capital Letter A With
Ring Above". It can be created with keystroke ALT+0197. It is replaced
by a ? in this posting, because it probably would not be transmitted
correctly.
2. Create a 2nd file with the name test??.txt. The 5th character is a
"Latin Capital Letter A With Tilde", keystroke ALT+0195. The 6th
character is a "Horizontal Ellipsis", keystroke ALT+0133.
3. Go to the IDL Workbench and "open" the 2nd file with
file=dialog_pickfile()
4. Delete the 2nd file with: file_delete,file
The first file is deleted instead of the second one. Without any error
message.
Heinz
|
|
|