yosoysupercholo

Crear un Punto de Restauración

Jun 2nd, 2012
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.99 KB | None | 0 0
  1. Crear un Punto de Restauración
  2. Con solo dos pasos crea un punto de restauracion de todo el sistema, tienes que introducir solamente el nombre.(XP,Vista, 7).
  3.  
  4. Nota:Este lo guardan en extensión *.vbs
  5.  
  6. ‘---------------------------------------------------------
  7. ‘Description- This script makes a Windows XP system restore point
  8. ‘The restore point is named with user input
  9.  
  10. Option Explicit
  11. Dim oSysRestore, sName, makeRestorePoint, sMsg
  12. sMsg= msgBox(“Este script creara un punto de restauracion. Continuar?”, vbYesNo)
  13. If sMsg = vbNo then wScript.Quit
  14. Set oSysRestore = GetObject( “winmgmts:\\.\root\default:Systemrestore” )
  15. sName = inputBox(“Escriba el nombre para el punto de restauracion.” & vbCrlf & “El dato sera incluido.”, “Name the restore point”)
  16. if sName =”" then wScript.Quit
  17. makeRestorePoint = oSysRestore.CreateRestorePoint( sName, 0, 100 )
  18. msgBox “El punto de restauracion llamado ” & sName & ” ha sido creado”
  19. set oSysRestore = Nothing
  20. wscript.Quit
Advertisement
Add Comment
Please, Sign In to add comment