create subkeys with regtool

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

create subkeys with regtool

angel bosch
hi!

i want to create a key a set a value for it:

regtool.exe -v set
'\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\Wallpaper'
'c:\brujula\imatges\tux3.bmp'

this gives an error if parent keys don't exist, so i must create all
inexistent keys. is there a way to create all path in a single command?
something like 'mkdir -p' for real paths.


thx in advance

--
àngel bosch
Departament de Sistemes i Comunicacions
Brújula Telecom
T. +34 971 433 909 - F. +34 971 433 910
www.brujulatelecom.com
___________________________
En el cor del seu negoci


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply | Threaded
Open this post in threaded view
|

Re: create subkeys with regtool

J. David Boyd-2
angel bosch <[hidden email]> writes:

> hi!
>
> i want to create a key a set a value for it:
>
> regtool.exe -v set
> \HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\Wallpaper'
> c:\brujula\imatges\tux3.bmp'
>
> this gives an error if parent keys don't exist, so i must create all
> inexistent keys. is there a way to create all path in a single
> command? something like 'mkdir -p' for real paths.
>
>

You might want to try _add_ rather than _set_.

Dave in Largo, FL



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/