show = Please Waitting... Gui, Font, S8 Cred Bold, Verdana Gui, Add, Edit, x6 y7 w240 h320 vshow Gui, Show, x131 y91 h337 w255, 批量导入注册表 GuiControl,, show, %show% foloder = %A_ScriptDir%\reg\ FileAppend, dir "%foloder%" /b >"%A_ScriptDir%\list.txt", %A_ScriptDir%\list.cmd run, %A_ScriptDir%\list.cmd, , min sleep, 1000 GuiControl,, show, Loop { FileReadLine, line, %A_ScriptDir%\list.txt, %A_Index% if ErrorLevel = 1 break path = %foloder%\%line% SplitPath, path, name show = %show%`n注册 %name% GuiControl,, show, %show% FileAppend, regedit /s "%path%"`n, %A_ScriptDir%\reg.cmd } run, %A_ScriptDir%\reg.cmd, , min FileDelete, %A_ScriptDir%\list.txt FileDelete, %A_ScriptDir%\list.cmd FileDelete, %A_ScriptDir%\reg.cmd ExitApp GuiClose: ExitApp
49 queries in 1.574 seconds |