Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How pickup registry key values from command prompt  (Read 2477 times)

0 Members and 1 Guest are viewing this topic.

yogeshasht

  • Guest
How pickup registry key values from command prompt
« on: March 24, 2010, 03:41:05 AM »
Hi Guys,

I want to puckup the values of registry key i.e. [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Contacts\Address Book\] with a name=path abd the value of it is C:\LOG;

Here i am trying to collect the above path(C:\LOG) availble  in batch file & want to use it as input to other command.

Note:  I have Microsoft Windows 2000 [Version 5.00.2195]

Can any one help in this case me in this case...

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: How pickup registry key values from command prompt
« Reply #1 on: March 24, 2010, 05:15:43 AM »
Code: [Select]
reg query "hklm\software\clients\contacts\address book" /v Path

You will get back 3 chunks of data: Name, Type and Value. You can use the for command to parse them.

Check out reg query /? from the command line for details.

Good luck. 8)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein