Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Microsoft Windows 2000/XP (http://forum.oszone.net/forumdisplay.php?f=6)
-   -   [решено] создание точки восстановления через командную строку (http://forum.oszone.net/showthread.php?t=81961)

Sparkster 01-04-2007 02:14 569120

создание точки восстановления через командную строку
 
Какой командой это делается?
Набираю в консоли rstrui.exe /? - ничего не запускается

Vadikan 01-04-2007 03:05 569127

Sparkster
Так просто в лоб не получится, но решения есть. Например, FileForum | System Restore Point Creator или VBS сценарий.

Код:

'Unattended System Restore Point
'sysrestorepoint.vbs
'© Doug Knox - rev 02/11/2002
'This code may be freely distributed/modified
'Downloaded from www.dougknox.com
'Extracted from original code by Bill James - www.billsway.com

Set sr = getobject("winmgmts:\\.\root\default:Systemrestore")

msg = "New Restore Point successfully created." & vbCR
msg = msg & "It is listed as: " & vbCR
msg = msg & "Automatic Restore Point " & Date & " " & Time

'Put a ' in front of the next five lines to disable the Success Failed Prompt.
If (sr.createrestorepoint("Automatic Restore Point", 0, 100)) = 0 Then
    MsgBox msg
Else
    MsgBox "Restore Point creation Failed!"
End If

'Remove the ' from these lines to only alert you if the process failed
'If (sr.createrestorepoint("Automatic Restore Point", 0, 100)) = 0 Then
'    MsgBox "Restore Point creation Failed!"
'End If

Set sr = Nothing

Сохраните с расширением VBS.

XpucT 23-01-2018 07:26 2793215

cmd:
Код:

wmic /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "Имя точки восстановления", 100, 1


Время: 11:40.

Время: 11:40.
© OSzone.net 2001-