| View previous topic :: View next topic |
| Author |
Message |
Marmar Member
Joined: 21 Mar 2007 Posts: 9 Location: Warsaw, Poland
|
Posted: 22/04/07 00:07 Post subject: more file info than in Tsearchrec |
|
|
| 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 |
|
 |
Johnny_Bit Administrator
Joined: 15 Jun 2003 Posts: 397
|
Posted: 22/04/07 07:50 Post subject: |
|
|
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 |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1231 Location: Tehran, Iran
|
Posted: 22/04/07 08:28 Post subject: |
|
|
What do you mean about more information? If you tell what, maybe we can offer a solution.
_________________ Kambiz
 |
|
| Back to top |
|
 |
Marmar Member
Joined: 21 Mar 2007 Posts: 9 Location: Warsaw, Poland
|
Posted: 22/04/07 12:45 Post subject: |
|
|
| 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 |
|
 |
Johnny_Bit Administrator
Joined: 15 Jun 2003 Posts: 397
|
Posted: 22/04/07 13:29 Post subject: |
|
|
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 |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 1231 Location: Tehran, Iran
|
Posted: 22/04/07 16:05 Post subject: |
|
|
You may find the ower user who created a file, but about the rest I don't think so.
_________________ Kambiz
 |
|
| Back to top |
|
 |
Johnny_Bit Administrator
Joined: 15 Jun 2003 Posts: 397
|
Posted: 22/04/07 18:43 Post subject: |
|
|
| 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 |
|
 |
Marmar Member
Joined: 21 Mar 2007 Posts: 9 Location: Warsaw, Poland
|
Posted: 22/04/07 21:03 Post subject: |
|
|
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 |
|
 |
DwrCymru Member
Joined: 27 Apr 2007 Posts: 8
|
Posted: 27/04/07 18:42 Post subject: |
|
|
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 ).
For more info have a look at :
http://www.jpgriffiths.com/tutorial/api/findfirstfile.html
|
|
| Back to top |
|
 |
|