Page 1 of 1

How towrite a i/p value in registry

Posted: 31 Jan 2008 05:42
by jebesh_s
Dear Gurus

please help me to get a input value via dos batch file and write it in registry
for example i am giving i/p like d:\forms\,i need to write this i/p in registry
under hkey_local_meachine-software-oracle
Thanks
Antony

Posted: 05 Feb 2008 00:44
by jebesh_s
noone knows?

Posted: 05 Feb 2008 19:33
by DosItHelp
Does i/p mean input?

Some more info would help. For variable input you can use:

Code: Select all

set /p "input="

to write a registry value you can use somthing like this:

Code: Select all

reg add "HKLM\Software\Oracle" /v "<ValueName>" /d "%input%"

Note: reg add adds the registry value or overwrites it if it already exists.

DOS IT HELP? :wink: