<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16588"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT size=2 face=Arial>Also Windows will prevent deleting or renaming a
file it thinks is in use. Check the open files section under Control
Panel/administrative tools. Sometimes even if a file is not listed there
windows will still complain about it being in use. Examples will be
any file opened for reading by another program, or I have seen it sometimes even
when the file has been recently closed. Open Office documents cannot
be attached into in email if they are still open in the program etc.
I have always suspected some caching issue might be behind these
oddities.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>If you can't rename, then plan B might be to copy
the file and then overwrite the original.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>On some sites I have seen a sort of similar issue -
a Copyfile command might either silently fail, or might end up with the
destination file having the current date and time on it rather than the
original...Only seems to be an issue on certain networks, and then only
sometimes.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>John Bird<BR>JBCL<BR>Contact:<BR><A
href="mailto:johnkbird@paradise.net.nz">johnkbird@paradise.net.nz</A><BR><A
href="mailto:jbclnz@xtra.co.nz">jbclnz@xtra.co.nz</A><BR>027 4844528<BR><A
href="http://jbclnz.googlepages.com">http://jbclnz.googlepages.com</A><BR></FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=vikas.image@gmail.com
href="mailto:vikas.image@gmail.com">Vik Vasudev</A> </DIV>
<DIV><B>Sent:</B> Friday, July 16, 2010 4:20 AM</DIV>
<DIV><B>To:</B> <A title=delphi@delphi.org.nz
href="mailto:delphi@delphi.org.nz">NZ Borland Developers Group - Delphi List</A>
; <A title="mailto:delphi@listserver.123.net.nz CTRL + Click to follow link"
href="mailto:delphi@listserver.123.net.nz">NZ Borland Developers Group - Delphi
List</A> </DIV>
<DIV><B>Subject:</B> [DUG] Rename file issue using renamefile
command</DIV></DIV></DIV>
<DIV><BR></DIV>Hi Everyone,<BR><BR>I am facing a problem using the rename
function in delphi 6. <BR><BR>We are using a Banking application where our
client normal do End of day processing during end of day. During that time we
process lot of file and rename it<BR><BR>say for example from xyx.txt to xyx.001
and xyz.002 etc.<BR><BR>But one of my client says he is getting error while the
file getting renamed. I just checked all the read access rights credential and
everything seems alright. And there is no locking too.It dont happen for him in
every location except in one branch.<BR><BR>I just wonder if anyone ever come
across this problem since i am not able to figure out what could be the reason
other than file rights<BR><BR>Regards<BR>Vik<BR clear=all><BR><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>NZ Borland Developers
Group - Delphi mailing list<BR>Post: delphi@delphi.org.nz<BR>Admin:
http://delphi.org.nz/mailman/listinfo/delphi<BR>Unsubscribe: send an email to
delphi-request@delphi.org.nz with Subject: unsubscribe</BODY></HTML>