han
14 years agoContributor
VersionInfo.LegalCopyright
How could I check if the LegalCopyright is present for a file with out getting a error for those that doesn't have the LegalCopyright properties set.
Think I tried them all (IsSupported, IsNull, IsNothing, IsEmpty, Len > 0 ...)
---Code---
Copyright = aqFileSystem.GetFileInfo(file).VersionInfo.LegalCopyright
>>>If Copyright.Exists Then
Log.Message ("Copyright for the file "+ file + " is ...")
Else
Log.Warning ("Copyright for the file "+ file + " is missing!")
end if