How towrite a i/p value in registry

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
jebesh_s
Posts: 8
Joined: 31 Oct 2007 04:36
Location: Chennai

How towrite a i/p value in registry

#1 Post by jebesh_s » 31 Jan 2008 05:42

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

jebesh_s
Posts: 8
Joined: 31 Oct 2007 04:36
Location: Chennai

#2 Post by jebesh_s » 05 Feb 2008 00:44

noone knows?

DosItHelp
Expert
Posts: 239
Joined: 18 Feb 2006 19:54

#3 Post by DosItHelp » 05 Feb 2008 19:33

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:

Post Reply