Guest User

duosrestore.vbs

a guest
Jun 9th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Set sh = WScript.CreateObject("Shell.Application")
  2. Set f = sh.BrowseForFolder(0, "DuOS_Backupフォルダを指定してください", 0)
  3. If Not f Is Nothing Then
  4.   val = MsgBox(f.Items.Item.Path +" からAMIDuOS 1.xのリストアをしますか?", 4 + 32)
  5.   If val = 6 Then
  6.     Set obj = CreateObject("Scripting.FileSystemObject")
  7.     If obj.FileExists("DuOSMigrate.exe") Then
  8.       Set sh2 = CreateObject("WScript.Shell")
  9.       sh2.Run "cmd /c DuOSMigrate.exe restore "+f.Items.Item.Path,1,true
  10.     Else
  11.       WScript.Echo("DuOSMigrate.exeが見つかりません。同じフォルダにDuOSMigrate.exeを入れてもう一度実行してください")
  12.     End If
  13.   End if
  14. End if
Advertisement
Add Comment
Please, Sign In to add comment