Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test_5_1_6.lua « test « lua-winreg « modules « src « lua « 3rdparty - github.com/windirstat/windirstat.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 615720f942dcf6cca66e2d220fee551ba47d4b8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local winreg = require"winreg"
-- Enumerate start up programs

rkey = "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"
hkey = winreg.openkey(rkey)

print('\n'..rkey..":")
for name, kind in hkey:enumvalue() do
	print("\nname: " .. name
	.. "\ncommand: " .. hkey:getvalue(name))
end

rkey = "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce"
hkey = winreg.openkey(rkey)

print('\n'..rkey..":")
for name, kind in hkey:enumvalue() do
	print("\nname: " .. name
	.. "\ncommand: " .. hkey:getvalue(name))
end