Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am doing a project using Window Service. i am new to this area.

Mi task is to extract the zip or rar file to a specify folder and i have to identify the extracted size also.

when the Service is on , it must automatically check the folder for rar files and that to extract the file and shows contents of that file in to the other folder..



if u know please share your idea

With Hope :)
Posted

"and that to extract the file and shows contents of that file in to the other folder."

Please explain what you mean by "shows the contents of that file in to the other folder:" Do you mean create a shortcut in the other folder to the file you've just unzipped ?

Search here on CodeProject for : "Rar" "7-Zip" "GZip" "Zip" "file compression" : lots of resources here you can use.

Enumerating the files in a folder to find all compressed files, or compressed files that are newer than the last time you checked should be easy. Calculating the size of the decompressed file should be easy since you know its exact file-path.

The part I can't understand is what you mean by "show content in the other folder."
 
Share this answer
 
By using .NET Framework 4.5 > System.IO.Compression.ZipFile
http://msdn.microsoft.com/en-us/library/system.io.compression.zipfile.aspx[^]
 
Share this answer
 

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