|
#1
|
||||
|
||||
|
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
__________________
if you understand read more Last edited by rinaldo; 26-01-2017 at 05:55. |
| Sponsored Links |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trials Fusion - Welcome to the Abyss 2xDVD5 CIU1014M | pakrat2k2 | PC Games - CD/DVD Conversions | 0 | 28-01-2015 09:42 |
| Football Fusion in Total Club Manager 2005 ?? :( | Garrett74 | PC Games | 2 | 04-03-2005 09:45 |
| plz help wipeout fusion no mod patch | double2002 | PS2 Games | 0 | 19-05-2002 11:01 |
| Wifeout Fusion | Sean_mc | PS2 Games | 1 | 11-04-2002 14:28 |
| Wipeout Fusion: Plz Help | mrupset | PS2 Games | 3 | 07-03-2002 08:43 |