Click here to Skip to main content
15,881,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI
I have a file with my own extension, when i right click on it, it shows "General,Class,Security,Summary"properties.
"Class" is custom property added by me.

"Class" property page contains :

GUID : 1233344566
NAME : XXXXX
AGE : N/A

Now zip this file and unzip the same and check my custom properties,they are as below :

GUID : N/A
NAME : N/A
AGE : N/A

Please anyone tell me the reason for loss of info after unzipping the file.


thanks in advance
Anandi
Posted
Comments
Timberbird 15-Sep-11 9:27am    
How are these custom properties stored? The reason could be that your attributes are stored in a file stream

1 solution

Well, I do think your problem is connected to alternative data streams. This kind of info must be lost during compressing. To check this, try examining whether there are any streams connected to file in question before and after compression. For example, you could use Streams[^] utility by Sysinternals
 
Share this answer
 
Comments
Anandi.VC 19-Sep-11 2:13am    
If not "Alternatre Data Streams" what else should i use ?
How Adobe is implementing its Custom Properties Tab "PDF" that retins info when zipped and unzipped ?

Please give me some clue.

Sravanthi
Timberbird 19-Sep-11 2:47am    
As far as I know, WinRAR allows you to preserve alternate streams in an archive
Anandi.VC 19-Sep-11 3:37am    
WinRar,7-ZIP are not Preserving.

Sravanthi
Timberbird 19-Sep-11 5:12am    
It's strange, this article says it is. Have you tried -os switch or corresponding option in GUI as this article describes? It also says this feature works on RAR files only
Anandi.VC 19-Sep-11 5:58am    
In WinRAR : Right click a file and Select "Add To Archive" -> Select Advanced Tab -> check "save file streams" then the Info is retained both in my custom properties tab and in summarys tab.
Thank you for this info. But i want this kind of thing in all kinds zipping.Is ther any way for this ?

Sravanthi

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900