Reg_Expand_Sz Export

  • Thread starter Thread starter Bruno Guerpillon
  • Start date Start date
B

Bruno Guerpillon

Hi

In my registry, i got some Values (REG_EXPAND_SZ) that are Path Folders.
When i'm exporting those values, they're in Hex format
Any clue how i could export em so the output result in the .REG file would
be exactly as shown in the registry (string)

Regards
 
Yes, I can do it in VB/VB.NET/C/C#

This is basically a programming question or you could just look up for a
convertor on Google

Crouchie1998
BA (HONS) MCP MCSE
Official Microsoft Beta Tester
 
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\"&_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
strValueName = "Path"
Return = objReg.GetExpandedStringValue(HKEY_LOCAL_MACHINE,_
strKeyPath,strValueName,strValue)
If (Return = 0) And (Err.Number = 0) Then
WScript.Echo "The Windows Path is: " & strValue
Else
Wscript.Echo _
"GetExpandedStringValue failed. Error = " & Err.Number
End If

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Hi
|
| In my registry, i got some Values (REG_EXPAND_SZ) that are Path Folders.
| When i'm exporting those values, they're in Hex format
| Any clue how i could export em so the output result in the .REG file would
| be exactly as shown in the registry (string)
|
| Regards
|
|
 
Hi

In my registry, i got some Values (REG_EXPAND_SZ) that are Path Folders.
When i'm exporting those values, they're in Hex format
Any clue how i could export em so the output result in the .REG file would
be exactly as shown in the registry (string)

Regards
Not possible, with an export.

If you want to show the result in a file, use REG.EXE, built into Windows XP and later, or installed on Windows 2000 from the
Support Tools on the operating system CD-ROM.

reg query "Key" /V ValueName



Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
 
Hey guyz
Tks for your answers
Anyway, got an easy solution
On the W2K RK, we got 2 nice apps : regdmp and regini.
Those 2 apps allow to export all values in plain text form and to reimport
em easily.

Was for the feedback

Regards
 
Back
Top