В свое время тоже стояла такая задача, решил следующим методом в Global :
PHP код:
static int RunWait(str _fileName)
{
container fileName;
COM wsh = new COM("WScript.Shell.1");
str fileExt;
int ret = -1;
;
fileName = str2con(_fileName, '.');
fileExt = conpeek(fileName, conlen(fileName));
if ((fileExt == "DOC") || (fileExt == "DOT"))
{
ret = wsh.Run('winword.exe ' + '"' + _fileName + '"', 1, True);
}
if (fileExt == "XLT")
{
ret = wsh.Run('excel.exe ' + '"' + _fileName + '"', 1, True);
}
return ret;
}
в версии 2.5 работало почему-то через раз, в версии 3 не пробывал!