private void button1_Click(object sender, EventArgs e)
{
var client = new WebClient();
try
{
client.DownloadFile("http://moonshroud.net/patchingtest.zip", @"patchtest.zip");
string zipPath = @".\patchtest.zip";
string extractPath = @".\Wrath of the Lich King";
ZipFile.ExtractToDirectory(zipPath, extractPath);
File.Delete(@".\Wrath of the Lich King\Data\enUS\realmlist.wtf");
client.DownloadFile("http://moonshroud.net/World-of-Warcraft-3.3.5a.12340-enUS%20PATCH.zip", @"patch.zip");
zipPath = @".\patch.zip";
extractPath = @".\Wrath of the Lich King";
ZipFile.ExtractToDirectory(zipPath, extractPath);
File.Delete(@".\patchtest.zip");
File.Delete(@".\patch.zip");
}
catch {}
}
private void button1_Click(object sender, EventArgs e)
{
var client = new WebClient();
try
{
client.DownloadFile("http://moonshroud.net/patchingtest.zip", @"patchtest.zip");
string zipPath = @".\patchtest.zip";
string extractPath = @".\Wrath of the Lich King";
ZipFile.ExtractToDirectory(zipPath, extractPath);
File.Delete(@".\Wrath of the Lich King\Data\enUS\realmlist.wtf");
client.DownloadFile("http://moonshroud.net/World-of-Warcraft-3.3.5a.12340-enUS%20PATCH.zip", @"patch.zip");
zipPath = @".\patch.zip";
extractPath = @".\Wrath of the Lich King";
ZipFile.ExtractToDirectory(zipPath, extractPath);
File.Delete(@".\patchtest.zip");
File.Delete(@".\patch.zip");
}
catch {}
}