大体如下:
Dim myFSO As New FileSystemObject
dim strname as string
If myFSO.FileExists("C:\windows\esk\acd.exe") = True Then
strname="C:\windows\esk\acd.exe"
Else
IF myFSO.FileExists("D:\windows\esk\acd.exe") = True Then
strname="D:\windows\esk\acd.exe"
Else
MsgBox "文件不存在!"
Exit Sub
End If
End If
Shell strname