Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: stat() and utf8 filenames on Win32 fails for me, why?

by nikosv (Chaplain)
on Feb 23, 2010 at 05:58 UTC ( #824779=note: print w/replies, xml ) Need Help??


in reply to Re: stat() and utf8 filenames on Win32 fails for me, why?
in thread stat() and utf8 filenames on Win32 fails for me, why?

You could use inherent Windows functions;a workaround is to use the COM facilities provided by windows (in this case Scripting.FileSystemObject) which provide a much higher level of abstraction than the Win32 api calls.

In your case you could use the GetFile method and then work with the properties of the returned object such as "DateCreated".

Take a look at this Perlmonks node Opening files with japanese/chinese chars in filename and at msdn File Object

  • Comment on Re^2: stat() and utf8 filenames on Win32 fails for me, why?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://824779]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2017-03-24 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (298 votes). Check out past polls.