Skip to content Skip to sidebar Skip to footer

How To Open A File With Python On Windows With Fileshare Permissions?

I have seen this question: How can I read a file even when getting an 'in use by another process' exception? Is there an equivalent way to do this using Python on Windows 7? I need

Solution 1:

If you need fine control over the sharing mode, you can use win32file.CreateFile to open the file. ActiveState docs are here.


Post a Comment for "How To Open A File With Python On Windows With Fileshare Permissions?"