Thread: i'am fusion
View Single Post
  #1  
Old 26-01-2017, 03:15
rinaldo's Avatar
rinaldo rinaldo is offline
Registered User
 
Join Date: Sep 2015
Location: Rome
Posts: 433
Thanks: 101
Thanked 696 Times in 191 Posts
rinaldo is on a distinguished road
Angry i'am fusion

because arc is saved and precompress no, maybe I'm Fried

Code:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Diagnostics;
using System.Windows.Forms;
using System.Linq;
using System.Xml.Linq;

namespace WindowsApplication1
{
	public partial class Form1
	{
		public Form1()
		{
			InitializeComponent();
		}

		private void Button1_Click(object sender, System.EventArgs e)
		{
			string sa = "\\*";
			if (FolderBrowserDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
			{
				TextBox1.Text = FolderBrowserDialog1.SelectedPath + sa;
			}
		}

		private void Button2_Click(object sender, System.EventArgs e)
		{
			SaveFileDialog saveFileDialog1 = new SaveFileDialog();
			saveFileDialog1.DefaultExt = "arc";
			saveFileDialog1.Filter = "Archives Arc  (*.arc) |*.arc|Archives Bin (*.bin)|*.bin\"";
			saveFileDialog1.FileName = "Data1.arc";
			saveFileDialog1.FilterIndex = 1;
			saveFileDialog1.CheckFileExists = false;
			saveFileDialog1.RestoreDirectory = false;
			saveFileDialog1.CheckPathExists = true;
			if (saveFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
			{
				TextBox2.Text = saveFileDialog1.FileName;
			}
		}

		private void Form1_Load(object sender, System.EventArgs e)
		{
			RadioButton1.Checked = true;
		}

		private void BackgroundWorker1_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
		{

			string Arc = "a -ep1 -r -lc1024 -ld1024 -mt0 -w./ -mx";
			string SrepPrecomp = "a -ep1 -r -lc1024 -ld1024 -mt0 -w./ -mprecomp+srep+exe+delta+lzma:a1:mfbt4:d158m:fb273:mc1000000000:lc8";

			if (RadioButton1.Checked == true)
			{
				Process.Start("bin\\arc", " " + Arc + " " + '\"' + TextBox2.Text + '\"' + " " + '\"' + TextBox1.Text + '\"' + " ").WaitForExit();
			}
			else
			{
				Process.Start("bin\\arc", " " + SrepPrecomp + " " + '\"' + TextBox2.Text + '\"' + " " + '\"' + TextBox1.Text + '\"' + " ").WaitForExit();
			}

			MessageBox.Show("Done!", "Compressor", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
		}

		private void Button3_Click(object sender, System.EventArgs e)
		{
			//If BackgroundWorker1.IsBusy <> True Then
			// Start the asynchronous operation.
			BackgroundWorker1.RunWorkerAsync();
			//End If
		}

		private static Form1 _DefaultInstance;
		public static Form1 DefaultInstance
		{
			get
			{
				if (_DefaultInstance == null)
					_DefaultInstance = new Form1();

				return _DefaultInstance;
			}
		}
	}

}


code by vbnet2010
Attached Files
File Type: 7z WindowsApplication1.7z (1.32 MB, 73 views)
__________________
if you understand read more

Last edited by rinaldo; 26-01-2017 at 05:55.
Reply With Quote
Sponsored Links