后半部分代码修改了一下,结果发现obj.run(path,1,true)返回值为128。
----------------------------------------------------------------try{
var s="HKEY_LOCAL_MACHINE\\SOFTWARE\\ZJ2007\\path";
var path = obj.RegRead(s);
if (path!=null) 
{
path = path + " " + currentUserID + " " + htbh + " " + zymc + " " + zxmc + " " + filePath + " " + accessFlag;
alert(path);
var ret = obj.run(path,1,true);
window.location.href= window.location.href;

} catch(e){
alert("本机没有安装油田造价软件,需要下载安装!");