回覆列表
  • 1 # dadazhu2

    Const DeleteReadOnly = True

    Set objFSO = CreateObject("Scripting.FileSystemObject")

    objFSO.DeleteFile("d:\yy\*.*"), DeleteReadOnly

    strComputer = "."

    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

    Set colSubfolders2 = objWMIService.ExecQuery _

    ("Associators of {Win32_Directory.Name="" & "d:\yy" & ""} " _

    & "Where AssocClass = Win32_Subdirectory " _

    & "ResultRole = PartComponent")

    For Each objFolder2 in colSubfolders2

    objFSO.deleteFolder objFolder2.name , DeleteReadOnly

    Next

  • 中秋節和大豐收的關聯?
  • 現在的公知指的是哪些人,能舉例說明嗎?