返回列表 上一主題 發帖

[發問] FileExists 方法能否找尋有無圖片檔存在?

回復 1# baconbacons


   myPhoto = dir(myPath & "\" & "原始相片" & "\" & "*.jpg")
    If  myPhoto<>”” Then msgbox ”good job” else msgbox ”not found photo”
學海無涯_不恥下問

TOP

回復 3# baconbacons


    FileExists方法不能使用萬用字元
檔案路徑必須明確
學海無涯_不恥下問

TOP

        靜思自在 : 【時日莫空過】一個人在世間做了多少事,就等於壽命有多長。因此必須與時間競爭,切莫使時日空過。
返回列表 上一主題