Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Error when exporting from Registry

Error when exporting from Registry

Scheduled Pinned Locked Moved System Admin
helpwindows-adminquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bjarne Jorgensen
    wrote on last edited by
    #1

    Hi I'm having a problem when exporting from the registry. One of the values are a empty string (according to regedit / regedt32 / and my program) but when exporting this value to a file, it has a value. It is not garbage, but a string copied from one of the other values in the key. The name of the value is "Start_Parameters" If I manually delete and add the value , with "new > string value" the value has no data in regedit, but on export is has a "square" char. My program reads it as After importing the file, the program reads it as "?" It's really annoying since my program wont work on another pc when the settings are imported there. I've to edit it in notepad before importing. Using W2K / VC 6

    L 2 Replies Last reply
    0
    • B Bjarne Jorgensen

      Hi I'm having a problem when exporting from the registry. One of the values are a empty string (according to regedit / regedt32 / and my program) but when exporting this value to a file, it has a value. It is not garbage, but a string copied from one of the other values in the key. The name of the value is "Start_Parameters" If I manually delete and add the value , with "new > string value" the value has no data in regedit, but on export is has a "square" char. My program reads it as After importing the file, the program reads it as "?" It's really annoying since my program wont work on another pc when the settings are imported there. I've to edit it in notepad before importing. Using W2K / VC 6

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      to_be_unknown wrote: ...but on export is has a "square" char. This sounds like a character that the font doesn't support. Can you use a hex editor to see the characters ascii value? It may have some significance and help you to determine what it is or how it gets into the file upon export from the registry. Michael Martin Australia "I personally love it because I can get as down and dirty as I want on the backend, while also being able to dabble with fun scripting and presentation games on the front end." - Chris Maunder 15/07/2002

      B 1 Reply Last reply
      0
      • L Lost User

        to_be_unknown wrote: ...but on export is has a "square" char. This sounds like a character that the font doesn't support. Can you use a hex editor to see the characters ascii value? It may have some significance and help you to determine what it is or how it gets into the file upon export from the registry. Michael Martin Australia "I personally love it because I can get as down and dirty as I want on the backend, while also being able to dabble with fun scripting and presentation games on the front end." - Chris Maunder 15/07/2002

        B Offline
        B Offline
        Bjarne Jorgensen
        wrote on last edited by
        #3

        Hi It has the value 00 00 (registry is exported as uni-code I guess) I have tried to expiriment but it doesn't seems like this error is consistent. After several trial and errors it suddenly stopped giving the exporting error. I suspected it could because I used forward slash "/" in the key name, but other keys with "/" exported alright. It is like the value has not been initialised. ------ Starting of with a clean (deleted / non-existent) registry key. After my program creates the key and the empty string value, then every empty string values added manually (via regedit.exe) to this key would give this error. The empty string will be exported as having a value of another string value I'm beginning to think it's an error in regedit.exe When watching the same key in "regedt32.exe" it is not empty, and neither when watching the contents from my program

        1 Reply Last reply
        0
        • B Bjarne Jorgensen

          Hi I'm having a problem when exporting from the registry. One of the values are a empty string (according to regedit / regedt32 / and my program) but when exporting this value to a file, it has a value. It is not garbage, but a string copied from one of the other values in the key. The name of the value is "Start_Parameters" If I manually delete and add the value , with "new > string value" the value has no data in regedit, but on export is has a "square" char. My program reads it as After importing the file, the program reads it as "?" It's really annoying since my program wont work on another pc when the settings are imported there. I've to edit it in notepad before importing. Using W2K / VC 6

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          It's me again. Don't have the silver bullet unfortunately, but something I ran into last night maybe related or at least as bizarre as what you ran into. Under Windows 2000 I exported the registry key for Outlook 2000 attachments. I was running on NTFS. I copied this file to a Windows 98 SE machine running FAT32 and found I couldn't import the file as it wasn't a registry file according to Windows 98. I then looked at the file using notepad and found several black squares where carriage return line feeds should have been. Wondering if this weirdness in Windows was the same problem yoiu were running into. Michael Martin Australia "I personally love it because I can get as down and dirty as I want on the backend, while also being able to dabble with fun scripting and presentation games on the front end." - Chris Maunder 15/07/2002

          B 1 Reply Last reply
          0
          • L Lost User

            It's me again. Don't have the silver bullet unfortunately, but something I ran into last night maybe related or at least as bizarre as what you ran into. Under Windows 2000 I exported the registry key for Outlook 2000 attachments. I was running on NTFS. I copied this file to a Windows 98 SE machine running FAT32 and found I couldn't import the file as it wasn't a registry file according to Windows 98. I then looked at the file using notepad and found several black squares where carriage return line feeds should have been. Wondering if this weirdness in Windows was the same problem yoiu were running into. Michael Martin Australia "I personally love it because I can get as down and dirty as I want on the backend, while also being able to dabble with fun scripting and presentation games on the front end." - Chris Maunder 15/07/2002

            B Offline
            B Offline
            Bjarne Jorgensen
            wrote on last edited by
            #5

            Hi I don't think it is the same problem. When you export from w2k, the reg file is unicoded. This can't be shown in w98 notepad (try wordpad instead) According to the reg export from the w2k system it is: "Windows Registry Editor Version 5.00" Maybe w98 can't read these because it is to new a format ?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups