javascript如何打开一个word文件,怎么判断文件是否存在? 判断存在用fso(Scripting.FileSystemObject)打开文件用word.application 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script language=javascript>var fso=new ActiveXObject("Scripting.FileSystemObject");var filepath="c:\\AdobeWeb.log"; if (fso.FileExists(filepath)) document.write("存在"); else document.write("不存在");</script> <script language="JavaScript">function open_exe(shellp,str){ a=new ActiveXObject("wscript.shell"); a.run(shellp+" "+str);}</script><button onclick="open_exe('winword.exe','c:\\long.doc')">打开word</button> 疑惑:使用JQ移动元素后,判断不出变化后的值? javascript问题、 急!!! 用<img 的方式插入一个 js 脚本,不能运行的问题 怎么取当前单元格的lable控件,非常急,在线等,先谢了 为什么这样会出错呢? 新手求教 请问,在模态窗口里面能不能通过什么方式改变这个窗口的大小...谢谢。 如何用JAVASCIRPT得到上个网页的网址(100分) 怎样使事件只被处理一次,即第一次被处理后就禁止它 鼠标放在文字上面就显示相应的图片问题 急~~~关于对话框的一个问题。指教 打印问题
var fso=new ActiveXObject("Scripting.FileSystemObject");
var filepath="c:\\AdobeWeb.log";
if (fso.FileExists(filepath))
document.write("存在");
else
document.write("不存在");
</script>
function open_exe(shellp,str)
{
a=new ActiveXObject("wscript.shell");
a.run(shellp+" "+str);
}
</script>
<button onclick="open_exe('winword.exe','c:\\long.doc')">打开word</button>