0514-86177077
9:00-17:00(工作日)
一是利用hta 去掉htm的控件驗證
hta1的代碼如下:
html> head> title>Sample HTML Application one/title> /head> body onload="Viewer.document.location.href='activexcontrol.htm'"> iframe id="Viewer" application="yes">!--這里是去掉驗證的關鍵--> /iframe> /body> /html>
activexcontrol.htm代碼如下:
script language="VBSCRIPT"> Dim FileSystem ' Creates the FileSystemObject Set FileSystem = CreateObject("Scripting.FileSystemObject") /script>
這樣就可以去掉htm的本地驗證了。
二、hta接收命令行參數
書中的代碼我估計有錯,不可能成功,我研究了一下,hta2應當這樣寫:
HTA:APPLICATION ID="MySampleHTA" Caption="yes"> html> head> title>Sample HTML Application two/title> /head> body> script language="VBScript"> cmdLineArray = Split(MySampleHTA.commandLine)‘這是把命令中的參數變成數組 MsgBox cmdLineArray(UBound(cmdLineArray)) '接收最后一個參數 a=document.getElementById("MySampleHTA").commandLine '這樣寫法是一個字符串,不是數組 MsgBox TypeName(a)"--"a '驗證 /script> /body> /html>
在命令行下:hta2 lcx 就會彈出lcx的對話框
標簽:武威 河南 阜陽 梅州 牡丹江 四平 咸陽 伊春
上一篇:iis PHP安裝腳本 PHPInstall.vbs V3.1
下一篇:Rcmd.vbs [Remote Cmd with wmi]遠程腳本
Copyright ? 1999-2012 誠信 合法 規范的巨人網絡通訊始建于2005年
蘇ICP備15040257號-8