[fpc-pascal] Deleting 'Nonexistent' files under windows
Marco van de Voort
marcov at stack.nl
Mon Jan 23 08:48:39 CET 2017
In our previous episode, Rolf Grunsky said:
> Is it possible to access files that have path lengths too long to access
> from explorer through Windows API from Pascal?
> I keep ending up with these very long file names which then I can not
> access. It seems that Windows will create the files, usually by copying
> the files from another source but the resulting path is too long to
> access the file or to delete it. Using the "\\?\" trick doesn't always
One must also call the unicode api to make that trick work. FPC only does
that since 3.0.
More information about the fpc-pascal