【正文】
strSoundFile amp。 strPath amp。 // amp。 39。 39。 arrFolderPath(i) Next strPath = strNewPath amp。} _ amp。 /root/cimv2) strFolderName = c:/scripts Set colSubfolders = _ (Associators of {=39。} _ amp。 ResultRole = PartComponent) For Each objFolder in colSubfolders GetSubFolders strFolderName Next Sub GetSubFolders(strFolderName) Set colSubfolders2 = _ (Associators of {=39。 strFolderName amp。 /Application Data/Microsoft/Templates Set objFSO = CreateObject() If (strPath) Then The folder exists. Else The folder does not exist. End If 9 如何列出文件夾及其所有子文件夾中的文件? strComputer = . Set objWMIService = GetObject(winmgmts:// amp。) For Each objUSBDevice in colUSBDevices Next Next 4 如何在指定的一段時間后自動消除消息框? Const wshYes = 6 Const wshNo = 7 Const wshYesNoDialog = 4 Const wshQuestionMark = 32 Set objShell = CreateObject() intReturn = (Do you want to delete this file?, _ 10, Delete File, wshYesNoDialog + wshQuestionMark) If intReturn = wshYes Then You clicked the Yes button. ElseIf intReturn = wshNo Then You clicked the No button. Else The popup timed out. End If 5 回復 4:如何在指定的一段時間后自動消除消息框? Const wshYes = 6 Const wshNo = 7 Const wshYesNoDialog = 4 Const wshQuestionMark = 32 Set objShell = CreateObject() Set objFSO = CreateObject() intReturn = (Do you want to delete this file?, _ 10, Delete File, wshYesNoDialog + wshQuestionMark) If intReturn = wshNo Then End If (c:/scripts/) 6 回復:VBS 7 如何在腳本中使用多選對話框? Set objDialog = CreateObject() = VBScript Scripts|*.vbs|All Files|*.* = amp。 /root/cimv2)