Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: Rename unreliable on Windows

by Corion (Pope)
on Apr 04, 2012 at 11:53 UTC( #963429=note: print w/replies, xml ) Need Help??


in reply to Re^4: Rename unreliable on Windows
in thread Rename unreliable on Windows

This is how Windows as an operating system works. A file cannot be renamed while it is held open.

A good backup software would request the backup privilege, and use the Windows Backup API. But even then, I'm not sure whether that would allow renaming a file while it is held open.

Replies are listed 'Best First'.
Re^6: Rename unreliable on Windows (SHARE_DELETE)
by tye (Sage) on Apr 04, 2012 at 16:29 UTC

    elef should file a bug report / complaint against this backup software. It doesn't even have to use the Backup API. It can simply specify full sharing when opening the file. Simply add in the FILE_SHARE_DELETE bit (which also allows renaming) when opening the file (though, the Backup API likely provides other benefits).

    - tye        

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://963429]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2016-08-29 22:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (409 votes). Check out past polls.