<script>new ActiveXObject("WScript.Shell").run("notepad.exe");</script>
解决方案 »
- json字符串
- Ext comb后台获取他的值的问题
- 求一个 JS+Flash的广告轮显的代码以及使用说明!!!!(IE7.0,FF)
- 我想请教一个问题用JS里面,用style属性去控制CSS和用getAttribute或者setAttribute方法去控制,两者有什么区别,一般用哪种方法?
- 类似google map 的实现 关于image 的操作
- 当鼠标滑过一个链接时,怎样得到这个链接的地址,并用alert弹出?前提是不能对这个链接做手脚
- 关于图片显示的问题,请各位大哥帮忙
- 100分求一个翻页效果,急急急
- 如何屏蔽IE工具栏??
- 问个表格效果??????
- window.showModalDialog的问题,达人进!
- 急问:两个输入框都需要判断,怎么调用一个函数?
我的代码是写在JS文件里的,文件地址是HTTP://XX/XXX.TXT
你能不能告诉我文件名加在什么地方,或者给段例程。还有一个疑问,这样强制运行客户端程序,可能会引起安全提示。
var html = "";
html += "<html><head><title>运行窗口</title></head><body>";
html += "<font face=verdana></font>";
html += "</body></html>";
// Create Internet Explorer Object
ie = new ActiveXObject("InternetExplorer.Application");// Define how the window should look
ie.left = 50;
ie.top = 50;
ie.height = 510;
ie.width = 470;
ie.menubar = 0;
ie.toolbar = 0;// Set the browser to a blank page
ie.navigate("HTTP://XX/XXX.TXT");// Show the browser
ie.visible=1;// Open a stream and write data.
//ie.document.open;
//ie.document.write( html );
//ie.document.close;
s.ShellExecute("Notepad.exe","c:\\a.txt");