get current working directory in Lua

后端 未结 5 1310
北荒
北荒 2021-01-04 01:37

What\'s the Lua to get the current working directory on Windows XP SP3 (or to get the directory of the currently-running Lua file)? I prefer not to use LuaFileSyste

5条回答
  •  醉酒成梦
    2021-01-04 02:15

    You could use alien to call out to GetCurrentDirectory in kernel32.dll, but that's probably not what you're looking for.

提交回复
热议问题