Anyway to programmatically get to the advanced file properties? I have a bunch of photos, and need to know the date/time they were taken (not modified). Any help would be appreciated.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
ADv File Attributes (Office 2003)
Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » ADv File Attributes (Office 2003)
- This topic has 8 replies, 4 voices, and was last updated 21 years, 7 months ago.
AuthorTopicWSgibbindr
AskWoody LoungerOctober 9, 2003 at 7:58 pm #394823Viewing 5 reply threadsAuthorReplies-
WSHansV
AskWoody LoungerOctober 9, 2003 at 8:38 pm #726903Microsoft has a DLL for (free) download that can get at Office document properties without opening the documents. It also works with other file types on Windows 2000 with NTFS, and I suppose that implies that it will also work on Windows XP and Windows Server 2003 with NTFS. I don’t know if this applies to your situation.
See Dsofile.exe Lets You Edit Office Document Properties from Visual Basic and ASP.
-
WSHansV
AskWoody LoungerOctober 9, 2003 at 8:38 pm #726904Microsoft has a DLL for (free) download that can get at Office document properties without opening the documents. It also works with other file types on Windows 2000 with NTFS, and I suppose that implies that it will also work on Windows XP and Windows Server 2003 with NTFS. I don’t know if this applies to your situation.
See Dsofile.exe Lets You Edit Office Document Properties from Visual Basic and ASP.
-
WSMarkD
AskWoody LoungerOctober 10, 2003 at 7:30 am #727036You can also use the Scripting FileSystemObject to get certain file information. Example:
Public Sub GetFileProperties(ByRef strFilePath As String)
Dim fso As New Scripting.FileSystemObject
Dim f As Scripting.FileSet f = fso.GetFile(strFilePath)
Debug.Print “Date Created: ” & f.DateCreated
Debug.Print “Date Last Modified: ” & f.DateLastModified
Debug.Print “Date Last Accessed: ” & f.DateLastAccessed
Debug.Print “Size: ” & f.Size & ” bytes”
Debug.Print “Path: ” & f.Path
Debug.Print “Short Path: ” & f.ShortPathSet fso = Nothing
Set f = NothingEnd Sub
Example use with a .JPG file:
GetFileProperties “C:Documents and SettingsMARK DMy DocumentsMy PicturesPhoto.jpg”
Date Created: 7/30/2003 09:13:51 PM
Date Last Modified: 7/30/2003 09:13:41 PM
Date Last Accessed: 10/10/2003 04:19:00 AM
Size: 16799 bytes
Path: C:Documents and SettingsMARK DMy DocumentsMy PicturesPhoto.jpg
Short Path: C:DOCUME~1MARKD~1MYDOCU~1MYPICT~1Photo.jpgTo be able to use FileSystemObject properties & methods, set a reference in your project to either Microsoft Scripting Runtime or Windows Script Host Object Model. The other option is to use the Windows API directly to get file information, but if all you need is Date Created, etc, using FSO is a lot simpler.
HTH
-
WSMarkD
AskWoody LoungerOctober 10, 2003 at 7:30 am #727037You can also use the Scripting FileSystemObject to get certain file information. Example:
Public Sub GetFileProperties(ByRef strFilePath As String)
Dim fso As New Scripting.FileSystemObject
Dim f As Scripting.FileSet f = fso.GetFile(strFilePath)
Debug.Print “Date Created: ” & f.DateCreated
Debug.Print “Date Last Modified: ” & f.DateLastModified
Debug.Print “Date Last Accessed: ” & f.DateLastAccessed
Debug.Print “Size: ” & f.Size & ” bytes”
Debug.Print “Path: ” & f.Path
Debug.Print “Short Path: ” & f.ShortPathSet fso = Nothing
Set f = NothingEnd Sub
Example use with a .JPG file:
GetFileProperties “C:Documents and SettingsMARK DMy DocumentsMy PicturesPhoto.jpg”
Date Created: 7/30/2003 09:13:51 PM
Date Last Modified: 7/30/2003 09:13:41 PM
Date Last Accessed: 10/10/2003 04:19:00 AM
Size: 16799 bytes
Path: C:Documents and SettingsMARK DMy DocumentsMy PicturesPhoto.jpg
Short Path: C:DOCUME~1MARKD~1MYDOCU~1MYPICT~1Photo.jpgTo be able to use FileSystemObject properties & methods, set a reference in your project to either Microsoft Scripting Runtime or Windows Script Host Object Model. The other option is to use the Windows API directly to get file information, but if all you need is Date Created, etc, using FSO is a lot simpler.
HTH
-
WSjscher2000
AskWoody LoungerOctober 10, 2003 at 11:32 pm #727400 -
WSgibbindr
AskWoody Lounger -
WSgibbindr
AskWoody Lounger
-
-
WSjscher2000
AskWoody LoungerOctober 10, 2003 at 11:32 pm #727401
Viewing 5 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
44 minutes ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
1 hour, 50 minutes ago -
0Patch, where to begin
by
cassel23
1 hour, 36 minutes ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
15 hours, 28 minutes ago -
89 million Steam account details just got leaked,
by
Alex5723
3 hours, 14 minutes ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
1 day ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
15 hours ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
2 hours, 7 minutes ago -
Installer program can’t read my registry
by
Peobody
3 hours ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
12 hours, 47 minutes ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
20 hours, 7 minutes ago -
False error message from eMClient
by
WSSebastian42
1 day, 11 hours ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
1 day, 20 hours ago -
Office 2021 Perpetual for Mac
by
rebop2020
1 day, 21 hours ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
18 hours, 2 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
2 days ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
1 day, 2 hours ago -
Outdated Laptop
by
jdamkeene
2 days, 6 hours ago -
Updating Keepass2Android
by
CBFPD-Chief115
2 days, 11 hours ago -
Another big Microsoft layoff
by
Charlie
2 days, 11 hours ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
8 hours, 51 minutes ago -
May 2025 updates are out
by
Susan Bradley
10 hours, 44 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
2 days, 17 hours ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
2 days, 17 hours ago -
Drivers suggested via Windows Update
by
Tex265
2 days, 17 hours ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
13 hours, 27 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
3 days ago -
Apple releases 18.5
by
Susan Bradley
2 days, 18 hours ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
3 days, 1 hour ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
3 days, 2 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.