Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- verze = "20.0701.R1"
- local cesta = {"/startup.lua", "/C/system/.core/desktop.lua", "/C/setting.lua", "/C/system/api/bluescreen"}
- local nazev = {"Startup", "Desktop", "Setting", "BSOD "}
- local verze = {}
- local data = fs.open(shell.dir().."/list.txt", "w")
- for i=1, #cesta do
- if fs.exists (cesta[i]) then
- local f=fs.open(cesta[i], "r")
- verze[i]=f.readLine()
- end
- data.writeLine(nazev[i].." -> "..verze[i])
- end
- data.close()
- shell.run("edit list.txt")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement