SHARE
TWEET

Untitled

a guest Aug 14th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. QProcess* proc = new QProcess();  
  2. proc->start("cmd.exe");
  3. proc->write("sshn");
  4. proc->closeWriteChannel();
  5. proc->waitForFinished();
  6. QTextCodec *codec = QTextCodec::codecForName("IBM 866");
  7. ui->textEditNormal->setText(codec->toUnicode(proc->readAllStandardOutput()));
  8. ui->textEditError->setText(codec->toUnicode(proc->readAllStandardError()));
  9.      
  10. "ssh" не является внутренней или внешней командой, исполняемой программой или пакетным файлом.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top