Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: Zip a file in Visual Cobol

$
0
0
Hi, I want to ZIP one file contained in a PC's local directory. Can anyone advise how to convert this into cobol? //Creates a new, blank zip file to work with - the file will be //finalized when the using statement completes using (ZipArchive newFile = ZipFile.Open(zipName, ZipArchiveMode.Create)) { //Here are two hard-coded files that we will be adding to the zip //file. If you don't have these files in your system, this will //fail. Either create them or change the file names. newFile.CreateEntryFromFile(@"C:\Temp\File1.txt", "File1.txt"); newFile.CreateEntryFromFile(@"C:\Temp\File2.txt", "File2.txt", CompressionLevel.Fastest); } Taken from the website:- http://www.codeproject.com/Articles/381661/Creating-Zip-Files-Easily-in-NET

Viewing all articles
Browse latest Browse all 5819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>