Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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.


Comment on Re^5: Rename unreliable on Windows
Re^6: Rename unreliable on Windows (SHARE_DELETE)
by tye (Cardinal) 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 meditating upon the Monastery: (8)
As of 2014-12-21 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls