本帖最后由 dkcsj 于 2009-8-1 20:39 编辑
我想做一个通过读取INI文件里面的地址进行远程连接的东东,
用Runwait(""&@SystemDir&"\mstsc.exe /v 192.168.1.1)没问题
但是调用ini的内容就不行,请大侠指点一下,是用错了命令还是??
#include <GUIConstants.au3>
$var = IniRead("C:\Temp\Set.ini", "名称", "名称", "未知")
$var1 = iniread("c:\temp\set.ini","地址","地址","未知")
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("远程连接", 391, 117, 193, 125)
$Input1 = GUICtrlCreateInput($var, 80, 50, 169, 21)
$Button1 = GUICtrlCreateButton("连接", 256, 48, 89, 25, 0)
$Input2 = GUICtrlCreateInput($var1, 8, 50, 65, 21)
$Button2 = GUICtrlCreateButton("设置",256,80,89,25,0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Runwait(""&@SystemDir&"\mstsc.exe /v "$var1"")
case $Button2
Exit
EndSwitch
WEnd |