DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   Watched TopicsWatched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

more file info than in Tsearchrec

 
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> Delphi Programming
View previous topic :: View next topic  
Author Message
Marmar
Member


Joined: 21 Mar 2007
Posts: 9
Location: Warsaw, Poland

PostPosted: 22/04/07 00:07    Post subject: more file info than in Tsearchrec Reply with quote

Does anybody know if it is possible to find out more info about file than this in Tsearchrec given by functions findfirst, findnext? For example information about the progam which has created or opened this file?
Back to top
View user's profile Send private message
Johnny_Bit
Administrator


Joined: 15 Jun 2003
Posts: 397

PostPosted: 22/04/07 07:50    Post subject: Reply with quote

c'est impossible. Using FAT or NTFS, no such informations are stored, therefore it's not possible.

Or maybe you asked the wrong question?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1231
Location: Tehran, Iran

PostPosted: 22/04/07 08:28    Post subject: Reply with quote

What do you mean about more information? If you tell what, maybe we can offer a solution.
_________________
Kambiz

Back to top
View user's profile Send private message Send e-mail Visit poster's website
Marmar
Member


Joined: 21 Mar 2007
Posts: 9
Location: Warsaw, Poland

PostPosted: 22/04/07 12:45    Post subject: Reply with quote

As I've written. 1.Where does the file come from- who (what application) create this file. 2 Who opened/changed it last time.
Back to top
View user's profile Send private message
Johnny_Bit
Administrator


Joined: 15 Jun 2003
Posts: 397

PostPosted: 22/04/07 13:29    Post subject: Reply with quote

As I said, I believe that this kind of information is not stored niether in FAT nor NTFS.

Frankly, when I had classes for Hardware systems, there was one subject that was related to your question: we had to theoretically design some kind of file system and what information should be stored in it. Nobode even thought about "program that created the file" field. So... I'm preety sure there is no FS that has this kind of data.

On the other hand... There are ways to get not stored info... What approach you want to take?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1231
Location: Tehran, Iran

PostPosted: 22/04/07 16:05    Post subject: Reply with quote

You may find the ower user who created a file, but about the rest I don't think so.
_________________
Kambiz

Back to top
View user's profile Send private message Send e-mail Visit poster's website
Johnny_Bit
Administrator


Joined: 15 Jun 2003
Posts: 397

PostPosted: 22/04/07 18:43    Post subject: Reply with quote

as far as I know from FAT you can get only: name, creation date& time, same to last modification and file size. that's all. Now from NTFS you can(IF you get the specs) get all info that any normal FS should have.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Marmar
Member


Joined: 21 Mar 2007
Posts: 9
Location: Warsaw, Poland

PostPosted: 22/04/07 21:03    Post subject: Reply with quote

Ok, thanks for the answers. I expected so, and now I'm more sure that there is no possibility to find out more than Tsearchrec gives.
BTW Tsearchrec differs date/time between creation and last modification of file.
Back to top
View user's profile Send private message
DwrCymru
Member


Joined: 27 Apr 2007
Posts: 8

PostPosted: 27/04/07 18:42    Post subject: Reply with quote

To actually get more info than the standard TSearchRec you should have a look at the "TWin32FindData" pointer returned in the record. It won't provide all the information you are looking for, and if the user has selected not to record some of the information then it's a bit useless but it can give last access and other interesting stuff (well if you are that way inclined Laughing).

For more info have a look at :

http://www.jpgriffiths.com/tutorial/api/findfirstfile.html
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> Delphi Programming All times are GMT
Page 1 of 1

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group