-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWinDOS_Console_beta.cpp
More file actions
67 lines (59 loc) · 2.2 KB
/
WinDOS_Console_beta.cpp
File metadata and controls
67 lines (59 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
using namespace std;
int main() {
string answer;
cout << "F11? -- Y(yes) or N(no)" << endl;
cin >> answer;
if (answer == "y" || answer == "Y") {
system("powershell.exe -Command \"[void]($wshell = New-Object -ComObject WScript.Shell); [void]($wshell.AppActivate('cmd.exe')); $wshell.SendKeys('{F11}')\"");
system("cls");
}
else if (answer == "n" || answer == "N") {
system("cls");
}
string var;
string ver = "Version system '5.0'\nVersion core: '1.0'";
cout << "Welcome to WinDOS Console BETA!\n" << endl;
while (true) {
cout << "> " << "";
getline(cin, var);
if (var == "help" || var == "Help") {
cout << "Test command:" << endl;
cout << "sys - System's information" << endl;
cout << "ver - Version core system's" << endl;
cout << "infopc - Information your pc" << endl;
cout << "exit - Exit is WinDOS" << endl;
}
else if (var == "Sys" || var == "sys") {
cout << "WinDOS Console, only windows, soon linux..." << endl;
}
else if (var == "Ver" || var == "ver") {
cout << ver << endl;
}
else if (var == "InfoPc" || var == "Infopc" || var == "infoPc" || var == "infopc") {
cout << "CPU: " << endl;
system("wmic cpu get name");
cout << "------" << endl;
cout << "GPU: " << endl;
system("wmic path win32_VideoController get name");
system("wmic path win32_VideoController get PNPDeviceID");
system("wmic path win32_VideoController get DriverVersion");
cout << "------" << endl;
cout << "RAM: " << endl;
system("wmic MEMORYCHIP get BankLabel,DeviceLocator,Capacity,Speed");
}
else if (var == "test") {
system("test");
}
else if (var == "exit") {
system("taskkill /F /IM windos.exe");
}
else {
cout << "Error, command not found, command for help 'Help'! " << endl;
}
}
return 0;
}