Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 64 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. public static bool Zip(string DestFile, string Source)
  2.         {
  3.             try
  4.             {
  5.                 Process Zip = new Process();
  6.                 Zip.StartInfo.CreateNoWindow = true;
  7.                 Zip.StartInfo.FileName = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + @"\7z.exe";
  8.                 Zip.StartInfo.Arguments = "a -tzip -mx9 \"" + DestFile + "\" \"" + Source + "\"";
  9.                 Zip.StartInfo.CreateNoWindow = true;
  10.                 Zip.Start();
  11.                 Zip.WaitForExit();
  12.             }
  13.             catch
  14.             {
  15.                 return false;
  16.             }
  17.  
  18.             return true;
  19.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top