Tja, ein kleines Problem mit einem Programm das ich gerade schreibe:
Code:
#include<iostream>
#include<windows.h>
#include<conio.h>
using namespace std;
int main() {
char a2[MAX_PATH];
// restlicher Code
while (end2 >= 1) {
cout << a1 << ":" ;
cin>>a2;
if ( a2 == "kill" ) {
end2=0;
mend=0;
}
system(a2);
}
}
Wenn ich jetzt zB "CD C:\" Eingebe, wertet das Programm "C:\" als eigenständigen Befehl, dabei will ich ja "CD C:\" als einen Befehl haben jemand eine Idee, wie das umsetzbar wäre?