Lua - 访问文件控制应用程序? [英] Lua - Accessing files & controlling applications?
问题描述
一个人如何使用 Lua 脚本语言来做这样的事情:
How would a person use the Lua scripting language to do things such as this:
打开IE等应用程序并对其进行控制,访问C盘和.lua文件所在的当前目录进行修改、移动、创建和删除文件.
Opening an application such as IE and controlling it, accessing the C drive and the current directory that the .lua file is located to modify, move, create and delete files.
任何指向此参考资料的链接将不胜感激,我在任何地方都找不到任何明确的文档.
Any links to references for this would be appreciated, I cannot find any clear documentation anywhere.
推荐答案
一般来说,Lua 没有内置这种东西.Lua 是一种极简的编程语言,非常适合嵌入.核心语言仅使用 C89 中可用的工具.如果你想要花里胡哨,你需要添加 Lua 库.
Generally speaking, Lua doesn't have this kind of stuff built-in. Lua is a minimalist programming language, great for embedding. The core language only uses facilities available in C89. If you want bells and whistles, you need to add Lua libraries.
您可以通过在 luarocks、luadist 或 luaforge
You can find libraries by searching the wiki, at luarocks, luadist, or luaforge
对于控制 IE",您应该查看 LuaCom
For "controlling IE" you should take a look at LuaCom
要访问当前目录,请尝试 LuaFileSystem
For accessing the current directory, try LuaFileSystem
这篇关于Lua - 访问文件控制应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!