Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Exporting an Entry (WinXP-SP-2)

    Why won't the following create the entry alarms.reg? It should work (obviously NOT), but I cannot figure what's wrong here...

    regedit /ea alarms.reg HKEY_CURRENT_USERSoftwareBonSoftClocXAlarms

    ??

    Regards,
    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  2. #2
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Exporting an Entry (WinXP-SP-2)

    I'm clueless, Chuck! What the heck are you trying to do and where did you get the (alleged) command you're trying to execute? It seems to me that if you want to export a regedit key you would do it from WITHIN regedit and NOT with a command line entry. But I'd love to be educated. <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>

  3. #3
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Exporting an Entry (WinXP-SP-2)

    Al:

    This is a backup for an entry that can be modified from within a program, ClocX an alarm clock type of thing.

    All this entry is supposed to do is export the HKEY_CURRENT_USERSoftwareBonSoftClocXAlarms key out to a reg file.

    I know this worked until recently, but haven't had the need to us it for a while. but now it ain't. Not sure why, and just thought maybe the reg entry format may have shanged for XP-2.

    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  4. #4
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Exporting an Entry (WinXP-SP-2)

    Whew, I don't know where you come up with these things, Chuck. How 'bout going in to Regedit, drilling down to the key in question and using the EXPORT command to see if it will create the .reg file, huh? If it does, why don't you write to the authors of the program to see what they say about this anomoly?

  5. #5
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Exporting an Entry (WinXP-SP-2)

    Al:

    Yea, it exports from the registry if done directly... there's something wrong in my command-line syntax...

    Oh Well...

    Thanks,
    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Exporting an Entry (WinXP-SP-2)

    As Al noted, you can easily export from within Regedit. If you want to use a command line, you should be able to use

    reg export HKCUSoftwareBonSoftClocXAlarms alarms.reg

  7. #7
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Exporting an Entry (WinXP-SP-2)

    A search on the web shows the syntax
    <code> regedit /e filename.ext "registry key"</code>


    Try replacing the /ea in your example with /e and enclosing the registry key in "" marks, like this
    <code> regedit /e alarms.reg "HKEY_CURRENT_USERSoftwareBonSoftClocXAlarms"</code>

    StuartR

  8. #8
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Exporting an Entry (WinXP-SP-2)

    That's what I found too, but when I tried it with a registry path that exists on my PC with Windows XP Home SP-2, it didn't do anything - no error message, no .reg file. A command line with <code>reg export</code> does work for me.

  9. #9
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Exporting an Entry (WinXP-SP-2)

    Hans:

    After using your entry, running it from a CMD window, I got an error that reg.exe couldn't be located... which I then found in C:WINDOWSsystem32 ...

    Shouldn't that have been in/on my path? If so, what should I be "fixing", if not, how come it worked before (found the file)?

    Regards,
    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  10. #10
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Exporting an Entry (WinXP-SP-2)

    Hans,

    The syntax I gave worked fine for me (Windows XP Pro SP2). Here is some (lightly edited) output...

    C:temp>regedit /e stuart.reg "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrent VersionRun"

    C:temp>type stuart.reg
    <code>Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentV ersionRun]
    </code>

    (cut here to avoid getting tedious...)

  11. #11
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Exporting an Entry (WinXP-SP-2)

    Ah, for some reason "Hide protected system files" had turned itself on (I usually turn this off) and the .reg file was hidden. But why regedit produces a hidden version and reg a non-hidden one, I don't understand. (Other .reg files aren't hidden either).

  12. #12
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Exporting an Entry (WinXP-SP-2)

    <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>

  13. #13
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Exporting an Entry (WinXP-SP-2)

    Hans:

    Born impatient, I couldn't sit still long enough... I'm in the process of an image recovery as we speak...

    Thanks anyway...

    Regards,
    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  14. #14
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Exporting an Entry (WinXP-SP-2)

    Guys:

    It was something wrong with my XP install...

    I restored from a backup, and the original

    regedit /ea alarms.reg HKEY_CURRENT_USERSoftwareBonSoftClocXAlarms

    worked fine...

    BTW, you probably know (I didn't) but the 'ea' param makes it export a Win98 version of the entry, instead of the WinXP version you get by using just 'e'.

    Thanks,
    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  15. #15
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Exporting an Entry (WinXP-SP-2)

    No, I didn't know about /ea. Do you have a particular reason for wanting to create an older type .reg file?

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •