Thanks support, that works fine from the user scripting area when I do :
key := “\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders”;
ident := “Desktop”;
s := ReadRegStr(2,key,ident,-1);
But I get a javascript error, "Object doesn’t support property or method 'ReadRegStr
key...