Lua-访问文件和控制应用程序? [英] Lua - Accessing files & controlling applications?

查看:81
本文介绍了Lua-访问文件和控制应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个人将如何使用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.

您可以通过在 wiki 来找到库. luarocks.org/"rel =" noreferrer> 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆