Next Topic

Previous Topic

Book Contents

TLuaWMIQuery

--Demonstrates the Lua WMI interface
Query = TLuaWMIQuery(); Query:Execute("select Deviceid,Size,Freespace from win32_logicaldisk"); print(Query:GetErrorDescription());

while (Query:NextInstance()) do
	sDeviceID = "";
	bOk,sDeviceID = Query:GetProperty("Deviceid",sDeviceID);
	print(sDeviceID);
end