Показать полную графическую версию : [решено] Импорт .reg файла
apozlevich
17-11-2011, 09:18
Как можно импортировать .reg файл? Кроме вот этого ShellExecuteWait("reg", "import settings.reg") ничего не приходит в голову.
_RegImport("settings.reg", 1)
Func (http://www.autoitscript.com/autoit3/docs/keywords.htm#Func) _RegImport($sRegFile, $iWait = 0)
If (http://www.autoitscript.com/autoit3/docs/keywords.htm#If) $iWait Then (http://www.autoitscript.com/autoit3/docs/keywords.htm#Then)
RunWait (http://www.autoitscript.com/autoit3/docs/functions/RunWait.htm)('RegEdit.exe /s "' & $sRegFile & '"')
Else (http://www.autoitscript.com/autoit3/docs/keywords.htm#Else)
Run (http://www.autoitscript.com/autoit3/docs/functions/Run.htm)('RegEdit.exe /s "' & $sRegFile & '"')
EndIf (http://www.autoitscript.com/autoit3/docs/keywords.htm#EndIf)
EndFunc (http://www.autoitscript.com/autoit3/docs/keywords.htm#EndFunc)
?
:hmm:
apozlevich
17-11-2011, 09:35
О, а про regedit я и не подумал. :)
© OSzone.net 2001-2012
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.