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

github.com/windirstat/lua-winreg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_1.lua')
-rw-r--r--test/test_1.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_1.lua b/test/test_1.lua
new file mode 100644
index 0000000..1dc0170
--- /dev/null
+++ b/test/test_1.lua
@@ -0,0 +1,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