Get the new PortableApps.com Platform 10.0: Gorgeous themes, a full portable app store and advanced functionality
Announcing the World's Best Flash Drive: The PortableApps.com Companion | Did you see a malware warning on Friday?

Small nit with locked files

duckhead - May 18, 2009 - 9:03am

It looks like the new Toucan (2.1.0) continues to try to process a file that it was unable to open, leading to the following log entries. Also, the log entries on the failed fseek and stat calls make it look like it was successful, which is misleading (thanks Microsoft and your weird WIN32 status codes.) I think in this case that the first error message is enough.

It would also be nice to do something to highlight error messages. I have less than computer savvy people running sync jobs (long story.) and colors or something would make it easier to understand the log files quickly.

duckhead

08:27:13 Starting

Setting up progress bar
08:27:32 can't open file 'G:\test.tc' (error 32: the process cannot access the file because it is being used by another process.)
08:27:32 can't get seek position on file descriptor -1 (error 0: the operation completed successfully.)
08:27:32 can't find length of file on file descriptor -1 (error 0: the operation completed successfully.)
08:27:32 Failed to copy the file 'G:\test.tc' to 'C:\Backups\Thumbdrive\Toucan.tmp' (error 32: the process cannot access the file because it is being used by another process.)

00:10:04 Elapsed
08:37:17 Finished


( categories: )

Sure

colouring them is a great idea, I shall get that added for the next release, I shall work on cutting down on the number of error messages too Smiling

'...and do the other things, not because they are easy, but because they are hard...' JFK

Or implement VSS support. ;)

Or implement VSS support. Eye-wink

I

am fully aware that you would like to see VSS support, and the new sync engine does make much easier to implement and it is on the list.

'...and do the other things, not because they are easy, but because they are hard...' JFK

Oh it's great to hear that

Oh it's great to hear that there is progress with vss, i'm so looking forward to vss support.

If

you want to speed it up finding a good tutorial on using it would be great Eye-wink

'...and do the other things, not because they are easy, but because they are hard...' JFK

For what programming language

For what programming language do you need info about VSS?

Just

a little example for c++ on how to copy an in use file, all of the examples I can find are about creating a provider or seem so complicated I can'y even find the relevant pieces!

'...and do the other things, not because they are easy, but because they are hard...' JFK

Maybe the application

Maybe the application Hobocopy is a good example for you.
It is written in C++ and you can download the source here:
http://sourceforge.net/project/showfiles.php?group_id=117783&package_id=...

Homepage of Hobocopy:
http://alt.pluralsight.com/wiki/default.aspx/Craig/HoboCopy.html

What you could also do, is use WMI to access the VSS functionality.
According to this post WMI is a rather easy method:
http://blogs.msdn.com/charles_sterling/archive/2005/01/02/345421.aspx

More info about VSS WMI classes:
http://msdn.microsoft.com/en-us/library/aa394426(VS.85).aspx

Maybe that helps?

Thanks

for the links, the are very helpful, WMI does look to be the easiest way, although I shall take a dig into the Hobocopy source too to see how they do it Smiling I hope to get this added (finally) in the release after next!

'...and do the other things, not because they are easy, but because they are hard...' JFK

No

longer on the todo list I am afraid, see here.

'...and do the other things, not because they are easy, but because they are hard...' JFK