QProcess start audit.vbs script fail
Hello,
i am working in a program that needs processes.
QProcess *proc=new QProcess(this);
proc->start("audit.vbs");
Executing start method results in the following error:
Starting
Not Running
Failed to start error
Can someone explain to me,why this process doesn't start.I am using Windows7 operating system.
Thanks in advance
Re: QProcess start audit.vbs script fail
Probably because it is not a Windows Portable Executable (i.e. a binary exe). QProcess starts the process with CreateProcess not by using the Windows shell. It is the Windows shell that associates VBS file extensions with the scripting runtime. You could try "wcsript" or "cscript" as the process and "audit.vbs" as the arguments.