PDA

View Full Version : Qt5.7.1/C++ - QProcess, stop terminal briefly flashing



jimbo
26th January 2017, 20:14
Hello,

Windows 10.

Running QProcess, how to stop the terminal briefly flashing in the background?

process->start("cmd.exe", QStringList() << "/C" << "label j:www1000");

Thanks.

Regards

Lesiok
27th January 2017, 07:27
Why You don't do this like :
process->start("label ", QStringList() << "j:www1000");For what You use cmd.exe ?

jimbo
27th January 2017, 10:07
Hello Lesiok,


process->start("label ", QStringList() << "j:www1000");
This doesn't work, it changes the label on drive 'H', not drive 'J' as I want.

Regards

Lesiok
27th January 2017, 10:49
Then solve the problem of bad drive and do not try to work around it.

jimbo
27th January 2017, 12:08
Hello Lesiok,

There is nothing wrong with my drives, I've run checks.

process->start("label", QStringList() << "j:www1000");
Note: No space after label, now works ok.
Thanks for your help.

Regards