On 20 Apr 2011, at 17:16, reynolight wrote: > Am 20.04.2011 16:58, schrieb Michael Van Canneyt: >> >> As you can see, the function returns the result of the >> GetFileAttributes Win32 API call. >> Why this call returns -1 is something that we cannot speculate on. >> Most likely seems an error in the filesystem driver. > > Thanks, Michael. Came to the same result.
You can try calling getlastoserror to see whether it gives a more informative reason for the failure. Jonas_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal