我在一个主窗体中,加一个图片文件,文件的路径的是写在数据库中的,
取出路径地址,如何判断其文件是否存在.?

解决方案 »

  1.   

    if FileExists(完整文件名,包括路径) then
      ...
      

  2.   

    if FileExists('d:\folder\a.bat') then
      ...
      

  3.   

    if FileExists(完整文件名,包括路径) then 
      ...
      

  4.   

    var
      FilePath: String;
    FilePath := 从数据库返回地址参数;
    if FileExists(FilePath) then 
       ShowMessage('存在!')
    else
       ShowMessage('不存在!')
      

  5.   

    if FileExists(完整文件名,包括路径) then 正解
      

  6.   


    if FileExists('d:\folder\a.bat') then 
      ... 
      

  7.   

    //日志文件不存在
    if not FileExists(sFileName) then