Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Getting Network File Statistics

Posted on 1999-09-01
5
Medium Priority
?
162 Views
Last Modified: 2010-05-02
I am writting a vb program in which users are allowed to access files and modify them through word.  One of the "services" I want to provide is information about that file, like exactly what is displayed in windows explorer when a user right clicks properties|Statistics on a particular file.  I am familiar with the FileDateTime and GetFileAttr functions, however I need something more, like who accessed when and an explicit creation date.  I want to retrive this information and display it through my program.  Can anyone help?
0
Comment
Question by:ern314
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:ern314
ID: 2016737
Edited text of question.
0
 
LVL 2

Accepted Solution

by:
srirambm earned 600 total points
ID: 2016826
u need to use the filesystemobject

To access u need to reference the Miscrosoft  Scripting
Runtime SCRRUN.DLL, if u dont have it u may have to
download the windows scripting host from micorsoft site.

Here is the code to get the info:

Dim fso As New FileSystemObject
Dim f As File
Set f = fso.GetFile("<your file name>")

Debug.Print f.DateCreated
Debug.Print f.DateLastAccessed
Debug.Print f.DateLastModified

u can also copy /delete and do a lot of other
things with this.
0
 

Author Comment

by:ern314
ID: 2037506
Hey srirambm, I know it has been awhile sorry for the delay.  Anyway this object works great, my only question is is there a way to also list who modified the document, the revision no. and the total editing time.  I figured that those capabilities would be included in this object.  But they don't seem to be, am I looking in the wrong place or is this all of the information that this object can get?  
0
 
LVL 2

Expert Comment

by:srirambm
ID: 2037776
the information u ask is stored internal to the word document. If u need it, u have to use automation to open
the word document and read it from the file. Everytime
you do this word will open without the user interface and
will slow the whole system down. is this what you want ?

The fso cannot provide you with the other info u ask.
0
 

Author Comment

by:ern314
ID: 2037810
Thank you much srirambm, you have been very helpful.  The points are yours, again sorry for the delay.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question