[DUG] Rename file issue using renamefile command
Cameron Hart
Cameron.Hart at flowsoftware.co.nz
Sat Jul 17 14:12:36 NZST 2010
Are you sure your client is not using a Samba share for the folder where
you are renaming files. If so is the version of samba the same as at
the working sites.
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Vik Vasudev
Sent: Saturday, 17 July 2010 3:00 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Rename file issue using renamefile command
Thanks John,
I have asked my client to take a look at this how ever since Bank has
huge IT procedure to access particular settings it gonna take time for
them to check and come back.
But thanks for the help
regards
Vik
On Fri, Jul 16, 2010 at 3:30 AM, John Bird <johnkbird at paradise.net.nz>
wrote:
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.
If you can't rename, then plan B might be to copy the file and then
overwrite the original.
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.
John Bird
JBCL
Contact:
johnkbird at paradise.net.nz
jbclnz at xtra.co.nz
027 4844528
http://jbclnz.googlepages.com
From: Vik Vasudev <mailto:vikas.image at gmail.com>
Sent: Friday, July 16, 2010 4:20 AM
To: NZ Borland Developers Group - Delphi List
<mailto:delphi at delphi.org.nz> ; NZ Borland Developers Group - Delphi
List <mailto:delphi at listserver.123.net.nz>
Subject: [DUG] Rename file issue using renamefile command
Hi Everyone,
I am facing a problem using the rename function in delphi 6.
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
say for example from xyx.txt to xyx.001 and xyz.002 etc.
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.
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
Regards
Vik
________________________________
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe
--
vikas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20100717/4534ab84/attachment.html
More information about the Delphi
mailing list