code to get file attributes

D

Dale Fye

Am looking for some code (would prefer API calls over FileSystem object) to
allow me to get the size, date created, data modified, and any other
available attributes for a file that I know name and path of.

Anybody know where I can find some examples?
 
S

Stuart McCall

Dale Fye said:
Am looking for some code (would prefer API calls over FileSystem object)
to
allow me to get the size, date created, data modified, and any other
available attributes for a file that I know name and path of.

Anybody know where I can find some examples?

You can get/set a file's three dates using this:

http://www.smccall.demon.co.uk/MiscApi.htm#FileDateTime

For the rest, look up GetAttr and SetAttr in help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top