Getting File Attributes

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

Guest

The code at the link given is old and produces 112 errors in Visual Studio
2005 Express (Visual Basic). Any other suggestions.
 
S

Stefan Hoffmann

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 <--
 
G

Guest

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

Stefan Hoffmann

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

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