【软件自动化测试-QTP实战技能 13】== QTP 判断 files Exists

 


Set fso = CreateObject("Scripting.FileSystemObject")
filepath= "C:/JX/WorkSpace/ t.xls"
If (fso.FileExists(filepath) )Then
    msgbox filepath & "exists"
Else
   msgbox filepath & "doesn't exist"
End If

你可能感兴趣的:(c,测试)