|
代碼如下,執行后沒有生成test.INI 文件
#include<guiconstantsex.au3>
Global $file, $msg ,$mem[7]
Global $ini[quote][/quote]
GUICreate("HDinfo",600,600,200,80)
GUICtrlCreateLabel("SYS path :",5,22,50,22)
guictrlcreatelabel(" Memry :",5,52,50,22)
GUICtrlCreateLabel("Local File :",250,22,100,22)
guictrlcreatelabel("Local Memry:",250,52,80,22)
$file=GUICtrlCreateInput(""&@WindowsDir,55,20,150,20)
$mem=MemGetStats()
$M=GUICtrlCreateInput(""&$mem[1]/(1024)&" M",55,50,150,20)
$LOCALFILE=GUICtrlCreateInput("",330,20,150,20)
$localmem=GUICtrlCreateInput("",330,50,150,20)
$ini="c:\test.ini"
$input1=$file
IniWriteSection($ini,"windows path",$input1)
GUISetState(@sw_show)
While 1
$msg=GUIGetMsg()
Select
Case $msg=$gui_event_close
ExitLoop
EndSelect
WEnd
Exit |
|