[ahk] 레지스터리 등록여부 확인 후 없으면 추가시키기
레지스터리에 아래의 내용이 기입되어 있으면 통과, 기입되어 있지 않으면 등록하기
;Windows Registry Editor Version 5.00
;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
;"NvCPLiy"="C:\\windows\\system32\\arg.exe"
AUTOHOTKEY 소스
RegRead, OutputVar, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows\CurrentVersion\Run, NvCPLiy
StringLen, length, OutputVar
if length < 1; if 원본값은 상수변수이고, 비교대상은 %상수변수%이다.
{
RegWrite, REG_SZ, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows\CurrentVersion\Run, NvCPLiy, "C:\windows\system32\arg.exe"
}
댓글 등록 site:http://urin79.com