求教高手用AU3写VBS文件,VBS文件内容如下
Option ExplicitDim WshShell
on error resume next
set WshShell=Wscript.CreateObject("Wscript.Shell")
WshShell.run ("C:\Progra~1\Intern~1\iexplore.exe http://www.baidu.com")
set WshShell = nothing
最好网址读INI配置文件里面设置的网址
IE.INI
URL=http://www.baidu.com 回复 1# zzbtlc #include <IE.au3>
$ie = IniRead ( "IE.ini", "IE", "URL","" )
$oIE = _IECreate ($ie) ShellExecute(IniRead ( "IE.ini", "IE", "URL","" )) 主要问题不在读INI上面,是不知道
$file = FileOpen("IE.VBS", 1)
; 检查打开的文件是否可写
If $file = -1 Then
MsgBox(0, "错误", "不能打开文件.")
Exit
EndIf
FileWriteLine($file, "Option Explicit")
FileWriteLine($file, "Dim WshShell" & @CRLF)
FileWriteLine($file, "on error resume next" & @CRLF)
下面这几行不会写。。。
页:
[1]