阅读背景:

如何在Lua脚本中确定系统的操作系统?

来源:互联网 

Ok I need to determine the system's OS from a Lua script, but Lua as such has no API for this, so I use os.getenv() and query enviromental variables. On Windows checking the enviromental variable "OS" gives me the name of the system's OS, but is there some variable that exists on both Windows and most flavors of Unix that can be checked?Ok I need to determine the system's OS from a L




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: