Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdlib.h>
- #include <fstream>
- #include <string>
- using namespace std;
- int main () {
- ofstream launch;
- ofstream Aetherjar;
- ofstream Aether;
- ofstream ArsMagica;
- ofstream IronChest;
- ofstream Natura;
- ofstream TConstruct;
- ofstream BuildCraft;
- ofstream Factorization;
- ofstream ComputerCraft;
- launch.open("launch.bat");
- if (launch.is_open()){
- launch << "@echo off\n";
- launch << "Title Minecraft Launcher\n";
- launch << "set APPDATA=C:\\Users\\%USERNAME%\\AppData\\Roaming\\.KyaniteCraft\n";
- launch << "start %CD%\\minecraft.exe\n";
- cout<<"Wrote Bat";
- }
- else {
- cout <<"file not created";
- }
- launch.close();
- system("%CD%\\launch.bat");
- launch.open("Aetherjar.vbs");
- if (Aetherjar.is_open()){
- launch << "Set args = WScript.Arguments\n";
- launch << " Url = "http://kyanitecraft.playat.ch//Downloads//Jars//Aether.jar";
- launch << "set APPDATA=C:\\Users\\%USERNAME%\\AppData\\Roaming\\.KyaniteCraft\n";
- launch << "start %CD%\\minecraft.exe\n";
- cout<<"Wrote Bat";
- }
- system("%CD%\\Aetherjar.vbs");
- system("%CD%\\Aether.vbs");
- system("%CD%\\ArsMagica.vbs");
- system("%CD%\\IronChest.vbs");
- system("%CD%\\Natura.vbs");
- system("%CD%\\TConstruct.vbs");
- system("%CD%\\BuildCraft.vbs");
- system("%CD%\\ThaumCraft.vbs");
- system("%CD%\\Factorization.vbs");
- system("%CD%\\ComputerCraft.vbs");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment