Hi Colin,
> > I then open this file using the system object, strip out
> > any characters of Ascii value < 32, so that what remains
> > is simple text.
>
> As you can see, the third line in the first chunk has been
> truncated. The same line in the second chunk is fine. Yet I
> can't see any quantitive differences between these two lines
> in the source file. It's strange.
How are you creating/exporting these? Manually via RegEdit? RegEdit
on the command line?
If not, consider using it, instead:
regedit /e hklm.txt "hkey_local_machine"
regedit /e hkcu.txt "hkey_current_user"
regedit /e hkcr.txt "hkey_classes_root"
regedit /e txt.txt "hkey_classes_root\.txt"
Here's the specs for Regedit:
REGEDIT [/L:system] [/R:user] filename1
REGEDIT [/L:system] [/R:user] /C filename2
REGEDIT [/L:system] [/R:user] /E filename3 [regpath1]
REGEDIT [/L:system] [/R:user] /D regpath2
/L:system Specifies the location of the SYSTEM.DAT file.
/R:user Specifies the location of the USER.DAT file.
filename1 Specifies the file(s) to import into the registry.
/C filename2 Specifies the file to create the registry from.
/E filename3 Specifies the file to export the registry to.
regpath1 Specifies the starting registry key to export
from.
(Defaults to exporting the entire registry).
/D regpath2 Specifies the registry key to delete.
Beware the command parameter limitations for windows - they include
the active drive and path and die at 518 characters. This sounds
like a lot until you add a couple GUID's and a complex file name
into the request path.
If you're exporting the reg file manually via regedit, are you
specifying the reg-file version as NT4? This is the only truly
stable/portable/cross-platform export format. The newer (default)
versions are more compressed but use more binary (ascii<32) data,
and are more likely to fail your parser.
Regards,
Shawn K. Hall
http://12PointDesign.com/
http://ReliableAnswers.com/
'// ========================================================
I mean if we only had a wheelbarrow, that would be something.
-- 'Westley', The Princess Bride
'// =======================================================
Rules : http://ReliableAnswers.com/List/Rules.asp
Home : http://groups.yahoo.com/group/vbHelp/
=======================================================
Post : [email protected]
Join : [EMAIL PROTECTED]
Leave : [EMAIL PROTECTED]
'// =======================================================
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/vbhelp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/