Hi,
I have added a new category in the forum, called "coding tips" to share any code, or functions that might be useful for LuaRT users. Here you will find a simple Lua function to detect wether the provided binary filename (as a string) is for 32bits or 64bits platform :
function getBinaryType(file)
local f = tostring(sys.File(file):open("read", "binary"):read())
if f:find("PE\0\0\x64\x86") then
return "x64"
else
return "x86"
end
end