Test if a file is locked
Test if a file is locked
I want to test if a file is locked. Is there a quick and easy way to do that?
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Hi,
you can use this
OpenFile fails (returns 0) if the file is opened for read/write access.
cu
you can use this
Code: Select all
If OpenFile(1,"c:\test.txt")=0
MessageRequester("Open", "File already in use", #MB_OK|#MB_ICONERROR)
EndIf
cu
correct, as purebasic does not use the shared flags by default, so it wants to open the file exclusively
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Well, I'm going to use copyfile() - trying to figure out under which conditions that might fail 
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net

