here is a question forwarded off-list but informative enough to post to the 
group

> I have a question about registry manipulation.
> 
> I'm able to look at registry by doing 'ls', and 'cat' on registry key.
> It looks like to add a name=value is easy, I can just
>       echo new_name=new_value >>myregistry_key
> But in order to delete or update value, I think I'd need to create a
> temporary file containing all current name=value settings for the key,
> this file should have updated/deleted name=..., than I can overwrite current 
> key.
> 
> Is that the correct way for updating registry? I couldn't find much online.

thanks for the question
it will be added to the FAQ

this sequence shows how you can use the ... special directory
to write, read and delete name=value registry subkeys

(win7-64-uwin) cat '/reg/HKLM/SOFTWARE/AT&T Labs/UWIN'
Release=5.0
(win7-64-uwin) cat '/reg/HKLM/SOFTWARE/AT&T Labs/UWIN/.../Release'
5.0
(win7-64-uwin) cat '/reg/HKLM/SOFTWARE/AT&T Labs/UWIN/5.0/Install'
Root=/C/Program Files/UWIN
Home=/C/Users
(win7-64-uwin) cat '/reg/HKLM/SOFTWARE/AT&T Labs/UWIN/5.0/Install/.../Home'
/C/Users
(win7-64-uwin) cat '/reg/HKLM/SOFTWARE/AT&T Labs/UWIN/5.0/Install/.../Test'
cat: /reg/HKLM/SOFTWARE/AT&T Labs/UWIN/5.0/Install/.../Test: cannot open [No 
such file or directory]
(win7-64-uwin) echo AHA > '/reg/HKLM/SOFTWARE/AT&T 
Labs/UWIN/5.0/Install/.../Test'
(win7-64-uwin) cat '/reg/HKLM/SOFTWARE/AT&T Labs/UWIN/5.0/Install/.../Test'
AHA
(win7-64-uwin) cat '/reg/HKLM/SOFTWARE/AT&T Labs/UWIN/5.0/Install'
Root=/C/Program Files/UWIN
Home=/C/Users
Test=AHA
(win7-64-uwin) rm '/reg/HKLM/SOFTWARE/AT&T Labs/UWIN/5.0/Install/.../Test'
(win7-64-uwin) cat '/reg/HKLM/SOFTWARE/AT&T Labs/UWIN/5.0/Install/.../Test'
cat: /reg/HKLM/SOFTWARE/AT&T Labs/UWIN/5.0/Install/.../Test: cannot open [No 
such file or directory]
(win7-64-uwin) cat '/reg/HKLM/SOFTWARE/AT&T Labs/UWIN/5.0/Install'
Root=/C/Program Files/UWIN
Home=/C/Users

_______________________________________________
uwin-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/uwin-users

Reply via email to