home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 2002 April
/
VPR0204A.ISO
/
OLS_XP
/
WHAND600XP-BETA9
/
whand600xp-beta9.exe
/
1033
/
RCDATA
/
CABINET
/
CreateRestorePoint_EN.vbs
< prev
next >
Wrap
Text File
|
2001-12-22
|
825b
|
20 lines
' Create Restore Point Script
' ------------------------------------------------------------------------
' Copyright (C) 2001 Masami Ikawa
'
' (Notes) You cannot modify.
' ------------------------------------------------------------------------
L_RestorePointName = "WinBack Scratcher"
L_MsgBox_Title_Text = "WinBack Scratcher"
L_MsgBox_Success_Text = "Restore Point Created !!"
L_MsgBox_Error_Text = "[ERROR] Restore Point could not created !!"
Dim intDoIt
Set obj = GetObject("winmgmts:{impersonationLevel=impersonate}!root/default:SystemRestore")
If (obj.CreateRestorePoint(L_RestorePointName,0,100)) = 0 Then
intDoIt = MsgBox(L_MsgBox_Success_Text,vbOKOnly + vbInformation,L_MsgBox_Title_Text)
Else
intDoIt = MsgBox(L_MsgBox_Error_Text,vbOKOnly + vbExclamation,L_MsgBox_Title_Text)
End If