本帖最后由 batman 于 2011-5-21 09:25 编辑
我先来一个:- var str = "Hello! "
- var fso = new ActiveXObject("scripting.filesystemobject");
- fso.OpenTextFile("temp.txt", 2, 1).Write(str + "Bathome");
- var shell = new ActiveXObject("wscript.shell");
- shell.Run("temp.txt");
- WScript.Sleep(2000);
- shell.Run("cmd /c taskkill /f /im notepad.exe", 0);
复制代码
|