473,504 Members | 13,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how do you compress/zip a directory and all the subfolder/files un

i'm making a function to compress a directory and all the subfolders/files
under it for backup purpose. i can make a copy of directory without any
problem but how do i compress the copyed directory?

thank
Sep 25 '06 #1
2 2557
Hello dotnetnoob,

http://www.icsharpcode.net/OpenSource/SharpZipLib/

-Boo
i'm making a function to compress a directory and all the
subfolders/files under it for backup purpose. i can make a copy of
directory without any problem but how do i compress the copyed
directory?

thank

Sep 26 '06 #2
"dotnetnoob" <do********@discussions.microsoft.comschrieb:
i'm making a function to compress a directory and all the subfolders/files
under it for backup purpose. i can make a copy of directory without any
problem but how do i compress the copyed directory?
Compressing files and data
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=compression&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Sep 26 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2724
by: ganderso | last post by:
Help!! I need to interrogate about 150,000 files across a WAN and pull in ONLY the files less than 5 days old and larger than 10k bytes. I'm currently using Directory.GetFiles and it's taking...
5
3833
by: Bas Hendriks | last post by:
Has anyone any idea how asp.net find it's files back after compiling them to the temporary asp.net directory? I found on numerous webpages that the directorynames are chosen random but cannot find...
2
2074
by: James | last post by:
Hi all, I am new to ASP.NET. I am currently working on a project with VB, .NET 1.1 on a Windows 2000 server. I have two files C:\Inetpub\wwwroot\test\test.aspx...
2
1801
by: AppleBag | last post by:
Hello everybody, I am beginning the .NET learning curve, and I have learned how to load a listbox with a directory list of files using this code: If FolderBrowserDialog1.ShowDialog() =...
4
1351
by: Tim | last post by:
Can someone please tell me how I can get the last file added to a directory ( I am assuming it is a file attribute). I have built a text parsing application. Right now I have to manually get the...
2
2914
by: Zytan | last post by:
You can download them here: http://msdn2.microsoft.com/en-us/vstudio/aa718338.aspx This snippet seems wrong: Visual C# 2005 Code Snippets -filesystem -Search a Directory for Files Recursively ...
0
3833
by: alivip | last post by:
Is python provide search in parent folder contain sub folders and files for example folder name is cars and sub file is Toyota,Honda and BMW and Toyota contain file name camry and file name corola,...
0
1235
by: lander06 | last post by:
I have a directory structure that is constantly being updated. Config (Root) --City (Sub-Dir) ----Address (Sub-Dir) ------File I'm trying to create a script that will: 1. Scan a directory...
7
5072
by: Shwet Srivastava | last post by:
I am log in as user student and i want that if i make any file in a particular directory is owned by root at the time of creation of file or sub-directory. I used chown root /root/linux as a root...
0
7213
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7298
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.