SAP Knowledge Base Article - Preview

1942185 - FileExists Powerscript Function fails

Symptom

Migrating a PowerBuilder 10 application from WinXP to PowerBuilder 12.5  on Windows 7.

Using the following code is not working under the new OS.  The file is never found and the error message is displayed.

If FileExists("m:\testdir\testfile.jpg") then

        <some code>

else

 messagebox("Error", "File not Found")

end if

 

If the code was changed to use the UNC path, then the file is found ok:

If FileExists(\\servername\sharename\testdir\testfile.jpg) then

   <some code>

else

messagebox("Error", "File not Found")

end if


Read more...

Environment

  • SY PowerBuilder 12.5.2
  • Microsoft Windows XP SP3
  • Microsoft Windows 7 SP1

Product

PowerBuilder 12.5

Keywords

FileExists, Windows 7, Win7, mapped drive, unc , KBA , BC-SYB-PB , PowerBuilder , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.