Jump to content

Reg Query


Recommended Posts

I would like to eventually run reg query in a C or C++ program. At present I am just trying to run

the following command from a dos window on a WinNT machine:

M:\>reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

I get back :

The system was unable to find the specified registry key.

(a bad responce)

If I send the following :

M:\>reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\

I get :

Listing of [software\Microsoft\Windows\CurrentVersion\]

[Applets]

[Explorer]

[GrpConv]

[internet Settings]

[Multimedia]

[Policies]

[Run]

[Runonce]

[syncmgr]

[Telephony]

[Webcheck]

[WinTrust]

(A good responce)

any idea why

M:\>reg query HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

doesn't work? :blink:

Link to comment
Share on other sites

Hello labnotes, and welcome to the Forum.

I am no expert on what you are trying to do, but I wonder if it's the old dos problem of the path exceeding 8 characters. Or possibly that "Internet Settings" has a space as opposed to an underscaore.

Is it possible for you to try the reg query and encapsulate the key you are trying to get the information for?

like

M:\>reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings"

I do not know if this will work, but may be worth a try.

Good Luck. Mr. Mouse.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy