WScript.Shell doesn't open a program!
Posted on 2004-11-08
var rep = new ActiveXObject("WScript.Shell");
rep.Run(repPath, 1, true);
it seems to work fine: for example, notepad.exe, winword.exe... every program is opened correctly.
But I have one program, that I need to open my reports, that doesn't work. The error message is "Impossible to find the specified file".
I even added in the local system variable "PATH" the .exe file of this program, but anyway it doesn't work.
What's the matter?
Every help is appreciated.
Thanks in advance