Sorry yeah i was thinking that with vector i can use in this example but i can do too with this:
if(comando.left(2)=="cd"){
QDir::setCurrent(comando.
mid(3));
consola.start("cmd.exe /C " + comando);
}
if(comando==".."){
}
consola.start("cmd.exe /C " + comando);
consola.waitForFinished();
consola.waitForReadyRead();
QProcess consola;
if(comando.left(2)=="cd"){
QDir::setCurrent(comando.mid(3));
consola.start("cmd.exe /C " + comando);
}
if(comando==".."){
QDir::setCurrent("..");
}
consola.start("cmd.exe /C " + comando);
consola.waitForFinished();
consola.waitForReadyRead();
To copy to clipboard, switch view to plain text mode
The only thing sometimes when i change the directory show me this:
QProcess::start: Process is already running
QProcess::start: Process is already running
when you say Your other account's problem yeah sorry i forgot how to access in them. i lost the pass to re-enter again.
Anyways i want to learn about vector's like push_back or store string but at the moment i'm not doing one example only for this and i was thinking would be nice to store the path one big mistake.
Sorry again for all and for help me a lot.
Bookmarks