I modified the code as follows:
void Clone::selectDriveP()
{
if( driveOnoff)
{
arg << "/k" << "tw_install_p.bat";
twProcess.start( "cmd.exe", arg);
driveOnoff = false;
}
}
void Clone::selectDriveP()
{
if( driveOnoff)
{
QStringList arg;
arg << "/k" << "tw_install_p.bat";
twProcess.start( "cmd.exe", arg);
driveOnoff = false;
}
}
To copy to clipboard, switch view to plain text mode
Note that cmd.exe and tw_install_p.bat are in the parent directory.
I get a started() signal but no finished() signal. I don't see a dos window and cmd.exe is not seen in Task Manager.
Clearly I'm doing something stupid here.
Bookmarks