<p>Am 23.01.2017 05:54 schrieb "Rolf Grunsky" <<a href="mailto:rgrunsky@sympatico.ca">rgrunsky@sympatico.ca</a>>:<br>
><br>
> Is it possible to access files that have path lengths too long to access from explorer through Windows API from Pascal?<br>
><br>
> 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 work. I really don't want to spend $40 on a program just to delete some files. If I get really desperate I can always pull the drive from the Windows machine and connect it to the Linux machine but that's starting to look like work. A simple command line program would be much easier.</p>
<p>While in my opinion the Pascal function should work with the "\\?\" notation (if not, that's a bug) you can always use the corresponding Windows API function directly (AFAIK DeleteFileW).</p>
<p>Regards,<br>
Sven</p>