那我收回我4楼、6楼的回复
Private Sub Command1_Click()
Dim fsoTemp As Object
Set fsoTemp = CreateObject("Scripting.FileSystemObject")
If fsoTemp.FileExists("c:\dalian02.dmp") = True Then
MsgBox "文件存在"
fsoTemp.DeleteFile "c:\dalian02.dmp", True
MsgBox "文件删除成功"
Else
MsgBox "文件不存在"
End If
End Sub