|
本帖最后由 窄口牛 于 2023-2-27 13:34 编辑
- Set wShell = CreateObject("WScript.Shell")
- Set oExec = wShell.Exec("mshta.exe ""about:<input type=file id=FILE><script>FILE.click();new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).WriteLine(FILE.value);close();resizeTo(0,0);</script>""")
- File_Selected = oExec.StdOut.ReadLine
- Dim WshShell
- set WshShell = CreateObject("wscript.Shell")
- WshShell.Run """C:\Program Files\Internet Explorer\iexplore.exe"" """& File_Selected &""""
- 'Dim fso
- 'Set fso=CreateObject("Scripting.FileSystemObject")
- 'fso.DeleteFile(""& File_Selected &"")
复制代码
浏览器打开选择的文本文件(比如htm),加两句删除这个文件的语句,前面执行结果就变了,变成打开了主页,是这么个情况,有治否? |
|