YES! Thank you, it finally works, the main problem was other OS language,
seeing your edits and trying a few different alternatives - its now GOOD!
'===================
Set objShell = CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
arrRegPaths = Array( _
"HKEY_CURRENT_USER\Environment\", _
"HKEY_CURRENT_USER\SessionInformation\", _
"HKEY_CURRENT_USER\Volatile Environment\", _
"HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\", _
"HKEY_LOCAL_MACHINE\SYSTEM\Select\", _
"HKEY_LOCAL_MACHINE\SYSTEM\Setup\" _
)
Const intForReading = 1
Const intUnicode = -1
strFileName = objShell.ExpandEnvironmentStrings(".\") & ".\RegKeys.reg"
Set objRegFile = objFSO.CreateTextFile(strFileName, True, True)
objRegFile.WriteLine "Windows Registry Editor Version 5.00"
For Each strRegPath In arrRegPaths
strCommand = "cmd /c REG EXPORT " & strRegPath & " " & Replace(strRegPath, "\", "_") & ".reg"
objShell.Run strCommand, 0, True
If objFSO.FileExists(Replace(strRegPath, "\", "_") & ".reg") = True Then
'WScript.Sleep 1000 ' Wait one second to give the file time to close
Set objInputFile = objFSO.OpenTextFile(Replace(strRegPath, "\", "_") & ".reg", intForReading, False, intUnicode)
If Not objInputFile.AtEndOfStream Then
objInputFile.SkipLine
objRegFile.Write objInputFile.ReadAll
End If
objInputFile.Close
Set objInputFile = Nothing
objFSO.DeleteFile Replace(strRegPath, "\", "_") & ".reg", True
End If
Next
objRegFile.Close
Set objRegFile = Nothing
MsgBox "Finished."
'===================
THANX BoX
xfilz