Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- #include <conio.h>
- using namespace std;
- int main()
- {
- cout << "\n\t\t\tLanceur d'applications\n\n" << endl;
- cout << "\t1. Ne rien faire" << endl;
- cout << "\t2. Lancer TeamSpeak 3" << endl;
- cout << "\t3. Lancer Twitch (Curse)" << endl;
- cout << "\t4. Lancer TeamSpeak 3 et Twitch (Curse)" << endl;
- cout << "\n\nQuel est votre choix ? ";
- switch(getch())
- {
- case('1'):
- return 0;
- case('2'):
- ShellExecute(NULL, "open", "ts3client_win64.exe", NULL, "C:\\Program Files\\TeamSpeak 3 Client", SW_SHOWNORMAL);
- return 0;
- case('3'):
- ShellExecute(NULL, "open", "Twitch.exe", NULL, "C:\\Users\\Namentis\\AppData\\Roaming\\Twitch\\Bin", SW_SHOWNORMAL);
- return 0;
- case('4'):
- ShellExecute(NULL, "open", "ts3client_win64.exe", NULL, "C:\\Program Files\\TeamSpeak 3 Client", SW_SHOWNORMAL);
- ShellExecute(NULL, "open", "Twitch.exe", NULL, "%appdata%\\Twitch\\Bin", SW_SHOWNORMAL);
- return 0;
- default :
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement