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

Author Topic: Problem editing Registry entries via a command prompt  (Read 3692 times)

0 Members and 1 Guest are viewing this topic.

wilywombat

    Topic Starter


    Starter

    Problem editing Registry entries via a command prompt
    « on: July 23, 2008, 06:41:04 AM »
    Hi, 
    I have been trying to crack editing registry entries via a command prompt.  The problem I have is that the key has spaces in its name eg the "Recent File List" key in Wordpad.  If I try and use the the command "reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Wordpad /s" I get a list of the subkeys and values which includes the subkey "Recent File List".  If I then add the subkey name to the end of the command to get just the value for this subkey, I get "Error: Invalid command-line parameters". Ive tried using / between the words so that it looks like this "Recent/ /File/ /List" and also enclosing the subkey name in " " none of which works.

    Any ideas anyone???

    TIA for any help         

    nickc1976



      Intermediate

      Re: Problem editing Registry entries via a command prompt
      « Reply #1 on: July 23, 2008, 10:14:10 AM »
      It should be somthing like:

      reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Wordpad" /v "Recent File List"

      If you want to add a value, then use  reg add
      http://www.pc-citadel.com - PC and Laptop repairs upgrades and customization

      wilywombat

        Topic Starter


        Starter

        Re: Problem editing Registry entries via a command prompt
        « Reply #2 on: July 23, 2008, 02:37:26 PM »
        Tried it and it comes back with "Error: The system was unable to find the specified registry key or value"

        Sidewinder



          Guru

          Thanked: 139
        • Experience: Familiar
        • OS: Windows 10
        Re: Problem editing Registry entries via a command prompt
        « Reply #3 on: July 23, 2008, 02:53:23 PM »
        This should work:

        Code: [Select]
        reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Recent File List" /s

        Did you try reg /query /?.

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

        -- Albert Einstein

        wilywombat

          Topic Starter


          Starter

          Re: Problem editing Registry entries via a command prompt
          « Reply #4 on: July 24, 2008, 12:38:45 AM »
          That worked!  I can now incorporate it into my Winbatch programs!!  (www.windowware.com)
          Thanks Sidewinder and those that tried to help.

          wilywombat

            Topic Starter


            Starter

            Re: Problem editing Registry entries via a command prompt
            « Reply #5 on: July 24, 2008, 01:56:52 AM »
            Oops!, wrong link for those interested.  This is the link to Winbatch:- "www.winbatch.com" its like dos batch programming only for Windows.