Re: Persistent file property



Which properties did you set on FAT32 that were preserved when copying, and
how did you set them? This sounds suprising.

I talked about the file APIs in kernel mode, I forgot to mention the
Structured Storage and COM APIs in kernel mode. I just don't know about that
stuff, but someone here should be able to help.

No email program is going to preserve things like file attributes and NTFS
streams. Email attachments are basically named "blobs", so it's just copying
the main contents of the file. You will see the same behaviour from other
Internet protocols. My solution deals with file system level stuff. If
that's a problem for you, you need to seriously rethink your strategy. You
can't just attach an ID directly to a file and have it copied all over the
place with the guarantee that the ID will still be attached, unless you
actually modify the name or main of the file.

Paul

"Soeren S. Joergensen" <nospam@xxxxxxxxxxxx> wrote in message
news:ONhDOd6wFHA.2516@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Paul,
>
> Thanks for your quick reply - this will be most helpful.
>
> I did some (very) simple testing setting filling out some of the standard
> properties on a simple text file and moved/copied it around to severel
> different volumens. The properties was perserved also on FAT32 - so I
> persumed that these are also regular file properties like it want to use,
> only to store some more complex data in.
>
> When I mailed to my self the properties was reset though - and this might
> be a problem.
>
> Kr.
> Soren
>
> "Paul Baker" <paulb@xxxxxxxxxxxxxxxxxxxxxxx> skrev i en meddelelse
> news:%23Ng%23oS6wFHA.2656@xxxxxxxxxxxxxxxxxxxxxxx
>> If the file system is NTFS, you can write the ID to the file using file
>> streams. This information is preserved when copying the file, if
>> supported. That is, if the destination file system is also NTFS and the
>> version of Windows on the file server is Windows NT/2000/XP/etc.
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/file_streams.asp
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/ntfs5.asp
>>
>> This is how the Summary page is implemented in Explorer. In fact, there
>> are several predefined property sets that are implemented using
>> Structured Storage and NTFS streams. This goes into more detail about
>> them:
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stg/stg/predefined_property_set_format_identifiers.asp
>>
>> I don't know much about kernel mode, but there is no problem accessing
>> this from kernel mode as you can access it using regular file APIs such
>> as CreateFile, ReadFile and WriteFile.
>>
>> If the file system is anything else, such as FAT32, you're not going to
>> be able to associate any information directly with the file except for
>> file system stuff like name and attributes. Instead, you would have to
>> look at solutions involving a database associating a file name with the
>> ID. This doesn't sound like the direction you want to head in. Yet, you
>> imply it must work with FAT32.
>>
>> Paul
>>
>> "Soeren S. Joergensen" <nospam@xxxxxxxxxxxx> wrote in message
>> news:OdQREC6wFHA.3740@xxxxxxxxxxxxxxxxxxxxxxx
>>> Hi,
>>>
>>> I need to put some kind of property on a file (any file) with an id so
>>> I'll be able to identify it again at any time. The id could be a GUID
>>> like thing or something. The property must be persistent for copying
>>> (also to network drives) assuming the receiving file system is FAT32 or
>>> NTFS, if possible it should also be persistent when mailed as an
>>> attachment.
>>>
>>>
>>>
>>> Furtermore the property must be accessible from a device driver (Kernel)
>>>
>>>
>>>
>>> Is this possible, and if so can anyone point me in the right direction
>>> ??
>>>
>>>
>>>
>>> Kr.
>>>
>>> Soren
>>>
>>>
>>>
>>>
>>
>>
>
>


.



Relevant Pages

  • Re: Sorry to have to ask this.
    ... The file system on a CD is CDFS which can be read by other OS'es.. ... MVP - Windows Shell/User ... >>> dilemma of whether or not to go with NTFS or stick with FAT32. ...
    (microsoft.public.windowsxp.general)
  • Re: NTFS vs FAT32
    ... > Meaning my XP is running in NTFS, but my data is saved in FAT32 Disk D. ... to be less severe than on a FAT32 file system. ...
    (microsoft.public.windowsxp.basics)
  • Re: Sorry to have to ask this.
    ... And now I'm faced with the old dilemma of whether or not to go with NTFS or stick with FAT32. ... Limitations of the FAT32 File System in Windows XP ... Instead, because WinXP is descended from the WinNT/2K OS family, it has a command line utility called "Chkdsk," which performs much better. ...
    (microsoft.public.windowsxp.general)
  • Re: OT - Desktop Linux
    ... obvious presence in the file system). ... system services executables. ... If you have Linux or other OS, almost all of them can mount NTFS shares. ... or functionality and I don't think FAT32 is going to be unstable vs NTFS, ...
    (alt.sports.basketball.nba.la-lakers)
  • Re: XP Pro (Fat32 vs. NTFS) Is it easier/harder/no difference to upgrade motherboard/video card with
    ... XP uses NTFS and FAT32. ... Now if I under stand what you said you have one of each file system? ... Because you are running XP SP2 you need a slipstremed CD containing SP2 ...
    (microsoft.public.windowsxp.general)

Quantcast