|
I try to use loadkey to import a registry key.
I have this test script: writevalue("HKEY_CURRENT_USER\Test","Test","ORIGINAL","REG_SZ") ? "save" $ReturnCode = SaveKey("HKEY_CURRENT_USER\Test", "c:\zz_test.dat") ? $ReturnCode If $ReturnCode = 0 ? "Key SAVED...." Endif
writevalue("HKEY_CURRENT_USER\Test","Test","CHANGED","REG_SZ")
? "-----------------" ? "load" $ReturnCode = LoadKey("HKEY_CURRENT_USER\Test", "c:\zz_test.dat") ? $ReturnCode If $ReturnCode = 0 ? "Key loaded...." Endif
I run the script and this is the result.
================================ C:\test>KIX32.EXE zz_test.KIX 0 save 0 Key SAVED....0 -------------- load 5 ================================
I done a lot of test, but the script dosen't work. In the "Test" key I found always CHANGED. Why? I'm administrator of my pc, it is not a permission problem.
Thank You Luca Passioni
|