Else
MessageBox.Show("3")
Dim ps As System.Diagnostics.Process() = System.Diagnostics.Process.GetProcesses()
For Each p As System.Diagnostics.Process In ps
Select Case p.ProcessName
Case "wps","WINWORD","POWERPNT","AcroRd32","WINEXCEL"
If p.MainWindowTitle.Contains(vars("文件名")) And p.MainWindowTitle<>"" Then
MessageBox.Show("5")
p.kill
End If
End Select
Next
If FileSys.DirectoryExists(ProjectPath & "\Reports") Then '
MessageBox.Show("6")
FileSys.DeleteDirectory(ProjectPath & "\Reports",2,2)
MessageBox.Show("7")
End If
End If