Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QProcess* proc = new QProcess();
- proc->start("cmd.exe");
- proc->write("sshn");
- proc->closeWriteChannel();
- proc->waitForFinished();
- QTextCodec *codec = QTextCodec::codecForName("IBM 866");
- ui->textEditNormal->setText(codec->toUnicode(proc->readAllStandardOutput()));
- ui->textEditError->setText(codec->toUnicode(proc->readAllStandardError()));
- "ssh" не является внутренней или внешней командой, исполняемой программой или пакетным файлом.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement