PDA

View Full Version : QProcess start audit.vbs script fail



milli
3rd March 2011, 01:27
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

ChrisW67
3rd March 2011, 05:54
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.