Getting File Attributes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Access 2003. How can I programmatically retrieve file attributes
(properties) of any file (not just Access files)? I want to query a specific
property of a file, in particular the "Revision Number" found under the
Summary tab>Advanced. Thanks for any help you can give. God bless.
 
The code at the link given is old and produces 112 errors in Visual Studio
2005 Express (Visual Basic). Any other suggestions.
 
hi Doug,

Chaplain said:
The code at the link given is old and produces 112 errors in Visual Studio
2005 Express (Visual Basic). Any other suggestions.
We are here in an Access NG, we're using VBA...

mfG
--> stefan <--
 
Dear Stefan:

I used the Access Programming forum because I could find no forum for Visual
Studio Express (Visual Basic). I figured that the code for reading file
attributes in Access VBA would work in Visual Studio. This has generally
been the case. The example you linked me to was a class module and had
syntax that is obsolete. I did not know what to do with the class module.
Pasting it into my Visual Basic project and it just would not work.

Is there not a simple call that can retrieve all or part of a file's
properties? I need to get the information found on the Summary tab of the
file properties. Thanks for any help you can give. God bless.
 
hi Doug,

Chaplain said:
I used the Access Programming forum because I could find no forum for Visual
Studio Express (Visual Basic).
Ok. There are the microsoft.public.vb.* groups.
I figured that the code for reading file
attributes in Access VBA would work in Visual Studio.
Why didn't you say that earlier? You have an own class for that:

System.Diagnostics.FileVersionInfo

http://windowssdk.msdn.microsoft.com/en-us/library/system.diagnostics.fileversioninfo.aspx
Thanks for any help you can give. God bless.
I will see.

mfG
--> stefan <--
 
Back
Top