[VB.NET] IsAutoITFile [Function]
Hello !
Today, I've make a AutoIT file checker.
It's read compiled file and check if "AU3!EA" is in.
Code:
Private Function IsAutoITFile(ByVal sPath) As Boolean
Dim sFile As String = My.Computer.FileSystem.ReadAllText(sPath)
If sFile.Contains("AU3!EA") = True Then
Return True
Else
Return False
End If
End Function
Example:
Code:
If IsAutoITFile("C:\file.exe") = True Then
MsgBox("It's a AutoIT file !")
ElseIf IsAutoITFile("C:\file.exe") = False Then
MsgBox("It'isnt a AutoIT file !")
EndIf
++Callo++ Fairly simple, but very well coded.