New
#1
VBScript to create "Restore Point" in Win7
A lot of drilling is required to create a restore-point.
This a sample VBscript I found in my research ...
Code is rather sloppy -- not my style without declared variables and "Option Explicit"Code:Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore") strDescription = InputBox("Restore point description: ","My Restore Point") MYRP = IRP.createrestorepoint (strDescription, 0, 100)
sstrDescription variable needs to be handled if InputBox is cancelled.
Q1: Are these "methods" and "objects" kosher in Win7 32/64 and WinXP ?
Q2: what are the "createrestorepoint" arguments, ie, arg2 and arg3
Q3: in VBA what would be the VBEditor DLL reference be ?
. (I use VBA for testing only and if I can install the DLL reference,
. ( maybe there will some function/method help for "createrestorepoint"
Q4: Am I in the appropriate forum ?