[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Re: On VirtualPC Rename erases File

From: Peter Muster <restumr_at_gmail.com>
Date: Sun, 7 Mar 2010 13:12:43 -0800 (PST)

>Actually, MoveFileEx() allows to rename >files >with case only. For
>example, renaming TEXT.TXT to text.txt is >no >problem with MoveFileEx
>without renaming it first to a temp file.

Yes.

I played now a little bit around with the MoveFileEx function.

Here are my results:
In the MSDN-documentation for MoveFileEx is written that the two files should be on an local computer.
I use a folder which is on the host-computer and who is mapped with the integrativ-features to the Virtual-Client.
Therefore the drive has the name \\tsclient\e.
Therefore this is a share and not a local drive.

Now the results for MoveFile and MoveFileEx for the rename \\tsclient\e\folder\myTest.txt to \\tsclient\e\folder\\MyTest.txt
MoveFile=>success
MoveFileEx:dwFlags=0 =>success
MoveFileEx:dwFlags=MOVEFILE_REPLACE_EXISTING =>failed, GetLastError=2, the file is acutally erased (this is probally a MS-Error?)
MoveFileEx:dwFlags=MOVEFILE_REPLACE_EXISTING |MOVEFILE_COPY_ALLOWED=>success

Peter

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2456232

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-03-07 22:12:46 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.