Forum Discussion
AlexanderM
14 years agoStaff
Hello Du,
We have found the following workaround. Please let us know how it works for you.
We have found the following workaround. Please let us know how it works for you.
procedure Test;
var path, oWMI, oFile;
begin
path := 'C:\\Test\\large_file.exe'; // note double backslashes!
oWMI := Sys.OleObject('WbemScripting.SWbemLocator').ConnectServer;
oFile := oWMI.Get('CIM_DataFile.Name="' + path + '"');
Log.Message(oFile.Version);
end;
Related Content
- 12 years ago
Recent Discussions
- 2 days ago