Sorry yeah i was thinking that with vector i can use in this example but i can do too with this:
Qt Code:
  1. QProcess consola;
  2. if(comando.left(2)=="cd"){
  3. QDir::setCurrent(comando.mid(3));
  4. consola.start("cmd.exe /C " + comando);
  5. }
  6. if(comando==".."){
  7. QDir::setCurrent("..");
  8. }
  9. consola.start("cmd.exe /C " + comando);
  10. consola.waitForFinished();
  11. 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.