Solved

Extended File Attributes

Posted on 2011-09-10
10
506 Views
Last Modified: 2012-05-12
Hi,

I require to read and change Extended File Attributes.

Any assistance would be welcome.

A commercial option is acceptable.

Best Wishes

Tony Hunt
0
Comment
Question by:TonyDelphiHunt
  • 3
  • 2
  • 2
  • +1
10 Comments
 
LVL 26

Expert Comment

by:gtworek
ID: 36516036
You can call GetFileAttributesEx() API function - http://msdn.microsoft.com/en-us/library/aa364946(v=VS.85).aspx
Constants for file attributes are defined here: http://msdn.microsoft.com/en-us/library/gg258117(v=VS.85).aspx
0
 

Author Comment

by:TonyDelphiHunt
ID: 36516157
Thank you.

That's a good start.

Unfortunately I require a fully working Delphi solution. My programming experience is very much in the dba and sql area.

Best Wishes

Tony Hunt
0
 
LVL 26

Expert Comment

by:gtworek
ID: 36516190
What do you actually need to do? What this part of your app does?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:TonyDelphiHunt
ID: 36516208
I have some software which stores its data as files and uses the 'Authors' extended attribute to store some useful information.

I would like to be able to retrieve this data. All the functions I have can only retrieve normal attributes, dates, that sort of thing.

Best Wishes

Tony Hunt
0
 
LVL 26

Expert Comment

by:gtworek
ID: 36516257
Oh I see... I this case my first advice was totally wrong. Sorry. I have no idea how to read it with Delphi.
0
 
LVL 45

Accepted Solution

by:
aikimark earned 250 total points
ID: 36518953
Looks like a storage management call will give this to you.
http://www.delphi-central.com/tutorials/File_Summary_Info.aspx

Also, I would be surprised if you weren't able to access this via the WinShell object or WMI code.
0
 
LVL 45

Expert Comment

by:aikimark
ID: 36924928
I think that my comment http:#36518953 provided the solution and should be accepted.
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 36984547
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Performance of SQL statement 37 137
Is there a canned solution for a custom genealogy website 2 108
Breakpoint doesn't stop in my variable 3 37
convert Systemjs to Webpack 3 78
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

749 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