Guest User

MinecraftLauncher

a guest
Jun 21st, 2013
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3. #include <fstream>
  4. #include <string>
  5. using namespace std;
  6.  
  7. int main () {
  8.   ofstream launch;
  9.   ofstream Aetherjar;
  10.   ofstream Aether;
  11.   ofstream ArsMagica;
  12.   ofstream IronChest;
  13.   ofstream Natura;
  14.   ofstream TConstruct;
  15.   ofstream BuildCraft;
  16.   ofstream Factorization;
  17.   ofstream ComputerCraft;
  18.   launch.open("launch.bat");
  19.   if (launch.is_open()){
  20.   launch << "@echo off\n";
  21.   launch << "Title Minecraft Launcher\n";
  22.   launch << "set APPDATA=C:\\Users\\%USERNAME%\\AppData\\Roaming\\.KyaniteCraft\n";
  23.   launch << "start %CD%\\minecraft.exe\n";
  24.   cout<<"Wrote Bat";
  25. }
  26.   else {
  27.         cout <<"file not created";
  28.     }
  29.     launch.close();
  30. system("%CD%\\launch.bat");
  31.   launch.open("Aetherjar.vbs");
  32.   if (Aetherjar.is_open()){
  33.   launch << "Set args = WScript.Arguments\n";
  34.   launch << " Url = "http://kyanitecraft.playat.ch//Downloads//Jars//Aether.jar";
  35.   launch << "set APPDATA=C:\\Users\\%USERNAME%\\AppData\\Roaming\\.KyaniteCraft\n";
  36.   launch << "start %CD%\\minecraft.exe\n";
  37.   cout<<"Wrote Bat";
  38. }
  39. system("%CD%\\Aetherjar.vbs");
  40. system("%CD%\\Aether.vbs");
  41. system("%CD%\\ArsMagica.vbs");
  42. system("%CD%\\IronChest.vbs");
  43. system("%CD%\\Natura.vbs");
  44. system("%CD%\\TConstruct.vbs");
  45. system("%CD%\\BuildCraft.vbs");
  46. system("%CD%\\ThaumCraft.vbs");
  47. system("%CD%\\Factorization.vbs");
  48. system("%CD%\\ComputerCraft.vbs");
  49.   return 0;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment