CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Win32 Programming Help:
Filenames with special characters

 



AlexN
Deleted

Apr 16, 2000, 10:43 PM

Post #1 of 3 (4256 views)
Filenames with special characters Can't Post

Hello,

I am trying to read all filenames in a
directory and I can do that with a glob:
<*.*> - BUT:
When I try to access the files attributes
with GetAttributes, I only get results for
normal filenames, anything that contains
a special character results in an error.

What must I do to the string (which contains
the complete filename) to change the special
characters so that I do get a working
GetAttribute-call?

I am using Windows NT 4.0 with Perl from
Active State Version 5.00*.

with special chars I mean characters like the german umlauts or the euro sign...

Please help me! This is a Win32-problem because under Unix I haven't heard of this
problem...

Thanks,

Alex


Cure
User

Apr 17, 2000, 9:02 PM

Post #2 of 3 (4256 views)
Re: Filenames with special characters [In reply to] Can't Post

Hi

No, that asks for all filenames which have a dot in the name. For all
files, you probably want <* .*>


Cure


AlexN
Deleted

Apr 18, 2000, 12:29 AM

Post #3 of 3 (4256 views)
Re: Filenames with special characters [In reply to] Can't Post

Hi there,

well I do get all filenames on the system.
(Maybe it's because dos/windows-filenames all have the dot...)

Anyway, filenames like
‹bersichtslisten.xls are given to me by the globbing - but I can't do a stat or a
GetAttributes on those files...

Anyone working with Win32-Perl want to try
it?
Please???

Thanks,

Alex

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives