On 24 May 2016 at 20:46, Leonardo M. Ramé <l.r...@griensu.com> wrote:
> Hi, My app is a CGI running on Windows2012 (IIS 7.0), it needs to save a > file to a remote UNC or Mapped drive, but when I check using > DirectoryExists in both cases I get False, but of course the UNC and mapped > drive exists. > Does it fail only for the root UNC path but works for a path that contains a folder component? DirectoryExists internally uses GetFileAttributes WinAPI, which states: > If you call GetFileAttributes for a network share, the function fails, and > GetLastError returns ERROR_BAD_NETPATH. You must specify a path to a > subfolder on that share. https://msdn.microsoft.com/en-us/library/windows/desktop/aa364944%28v=vs.85%29.aspx Denis
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus