<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline">Many thanks for this input Frederic, I'll check it out.<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline">
Richard</div><br><br><div class="gmail_extra"><div class="gmail_quote">On 26 November 2013 14:16, Frederic Da Vitoria <span dir="ltr"><<a href="mailto:davitofrg@gmail.com" target="_blank">davitofrg@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div class="h5"><div class="gmail_extra"><div class="gmail_quote">2013/11/26 Richard Mace <span dir="ltr"><<a href="mailto:richard.mace@gmail.com" target="_blank">richard.mace@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif">Hi All,<br>I have an issue where I am unable to delete a file where the path name is longer than 256 characters.<br></div><div style="font-family:arial,helvetica,sans-serif">
Interesting enough, the error as reported from Windows (SysErrorMessage(GetLastError)) reports that Windows is unable to find the path specified.<br></div><div style="font-family:arial,helvetica,sans-serif">
I have even tried renaming the file so that it is shorter (within the full path) but I am unable to do that as Windows complains of the same error message.<br></div><div style="font-family:arial,helvetica,sans-serif">
It lookis like it is a temeporay internet file that explorer has created (if that helps)<br></div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">
Any ideas?<br><br></div><div style="font-family:arial,helvetica,sans-serif">Lazarus 1.2 RC1 Windows Server 2003<span></span><br></div></div></blockquote></div><br clear="all"></div></div></div><div class="gmail_extra">This is a pretty frequent Windows issue. IIRC, you have several options:<br>
</div><div class="gmail_extra">1: try to delete the file in a DOS shell using short names (for example replacing "My Documents" with "mydocu~1"). This is the best option as it avoids changing anything in your system. But it may not work because even the shortened path may be too long.<br>
</div><div class="gmail_extra">2+: see all the options form <a href="http://support.microsoft.com/kb/320081" target="_blank">http://support.microsoft.com/kb/320081</a> , but I'd use solution 3 before solution 2 if the directory where your file is stored is installed by some software (as is suggested by your mention of "temporary internet file". If you have to use solution 2, then be careful to restore the original directory names before running any software which might use this directory.<span class="HOEnZb"><font color="#888888"><br>
</font></span></div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra"><br>-- <br>Frederic Da Vitoria<br>(davitof)<br><br>Membre de l'April - « promouvoir et défendre le logiciel libre » - <a href="http://www.april.org" target="_blank">http://www.april.org</a><br>
</div></font></span></div>
<br>--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br></blockquote></div><br></div></div>