'==========================================================================
'
'
' NAME <regBack.vbs>
'
' AUTHOR: Ed Wilson , MS
' DATE  : 10/28/2003
'
' COMMENT: <illustrates the following concepts>
'1. creating the WshShell object
'2. using the shell execute method to launch a command line tool
'3. using the reg.exe support tool to backup the registry
'==========================================================================
Option Explicit
Dim objShell

WScript.Echo("beginning " & Now)
Set objShell = CreateObject("WScript.Shell")
'objShell.Exec "%comspec% /k reg.exe EXPORT HKLM c:\hklm.reg"
'objShell.Exec "cmd.exe /k reg.exe EXPORT HKLM c:\hklm.reg"
objShell.Exec "reg.exe EXPORT HKLM c:\hklm.reg"
WScript.Echo("completed " & Now)