Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / November 2006

Tip: Looking for answers? Try searching our database.

Getting File Attributes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chaplain Doug - 30 Oct 2006 13:58 GMT
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.
Signature

Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org

Stefan Hoffmann - 30 Oct 2006 14:09 GMT
hi Doug,

> 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.
http://vb.mvps.org/samples/project.asp?id=FileInfo

mfG
--> stefan <--
htm
Chaplain Doug - 31 Oct 2006 21:36 GMT
The code at the link given is old and produces 112 errors in Visual Studio
2005 Express (Visual Basic).  Any other suggestions.
Signature

Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org

> hi Doug,
>
[quoted text clipped - 7 lines]
> --> stefan <--
> htm
Stefan Hoffmann - 01 Nov 2006 14:10 GMT
hi Doug,

> 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 <--
Chaplain Doug - 01 Nov 2006 16:05 GMT
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.
Signature

Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org

> hi Doug,
>
[quoted text clipped - 4 lines]
> mfG
> --> stefan <--
Stefan Hoffmann - 01 Nov 2006 17:09 GMT
hi Doug,

> 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.fileversio
ninfo.aspx


> Thanks for any help you can give.  God bless.
I will see.

mfG
--> stefan <--
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.