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

test_1.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: cfcd7aa6e75a392f07a3e86e949ba73a668b99e7 (plain)
1
2
3
4
5
6
7
8
9
10
local winreg = require"winreg"

-- prints all the special folders
hkey = winreg.openkey[[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]]

skey = hkey:openkey([[Explorer\Shell Folders]])
for name in skey:enumvalue() do
	print("\nname: " .. name
	   .. "\npath: " .. skey:getvalue(name))
end