labnotes Posted March 10, 2004 Report Share Posted March 10, 2004 I would like to eventually run reg query in a C or C++ program. At present I am just trying to runthe 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 Settingsdoesn't work? :blink: Quote Link to comment Share on other sites More sharing options...
Agent Smith Posted March 10, 2004 Report Share Posted March 10, 2004 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?likeM:\>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. Quote Link to comment Share on other sites More sharing options...
labnotes Posted March 10, 2004 Author Report Share Posted March 10, 2004 I was skeptical at first. BUT YOU ARE CORRECT!!M:\>reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings"WORKEDThank you and have a great day :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.