我觉得这个还是自己写比较清楚
GUICreate("Form1", 625, 445)
$ListView1 = GUICtrlCreateListView("名称|路径", 80, 40, 441, 313)
GUICtrlSendMsg(-1, 0x1000 + 30, 0, 150)
GUICtrlSendMsg(-1, 0x1000 + 30, 1, 287)
$Search = FileFindFirstFile(@StartupCommonDir & "\*.*")
While 1
$FileName = FileFindNextFile($Search)
If @error Then ExitLoop
GUICtrlCreateListViewItem($FileName&"|"&@StartupCommonDir, $ListView1)
WEnd
For $i = 1 To 10000
$RegName = RegEnumVal("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", $i)
If @error <> 0 Then ExitLoop
$RegRead = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", $RegName)
GUICtrlCreateListViewItem($RegName&"|"&$RegRead, $ListView1)
Next
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case - 3
Exit
EndSwitch
WEnd
|