4 posts in this topic
How to get file version
How to get the thrid number of a file version.
Example: Let's say I have a file with below properties.
I want only the third number like here it is 1941 as highlighted.
Is there any built in function to get it??
How to compare file or folder contents
Generally we will use tools like Winmerge or Beyond Compare for this purpose.
Are there any UDF or libraries available in AutoIT to compare any two files or folder contents.
Exclusive file locking - SOLVED
I've run into the problem where multiple script processes writing to a log file at the same time can interfere with one another. That is, file writes using FileWriteLine are not atomic, so a line of text from one process can have fragments of text from other processes mixed in with it. Exclusive file-locking should take care of the problem.
Looking through the standard UDFs, I see that _WinAPI_LockFile is available, but according to the MSDN documentation it doesn't block - it returns immediately if the lock can't be obtained - and there doesn't seem to be a UDF for the LockFileEx function. I considered writing my own UDF for LockFileEx, but some aspects (e.g., creating the OVERLAPPED structure and its members) look too complex for the amount of time I have available. I think approximating LockFileEx using LockFile could solve my problem, but I'd like to keep it simple while still working reliably. I'm not confident that (e.g.) a simple retry loop to simulate blocking will be adequate.
Any suggestions for a simple way to achieve exclusive file-locking with blocking?
String split into char
How To split string into Array of char ?
StringIsDigit Does not work properly
Why this code does not work ?
$tmp = "1111" If StringIsDigit($tmp) == True Then MsgBox(0,"",StringIsDigit($tmp) == "1") EndIf and this one works
$tmp = "1111" If StringIsDigit($tmp) == "1" Then MsgBox(0,"",StringIsDigit($tmp) == "1") EndIf