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.
 
Top