Error when exporting from Registry
-
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
-
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
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
-
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
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
-
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
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
-
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
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 ?