Advertisement
pepeknamornik

checker verzí

Jul 1st, 2020
1,004
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. verze = "20.0701.R1"
  2.  
  3. local cesta = {"/startup.lua", "/C/system/.core/desktop.lua", "/C/setting.lua", "/C/system/api/bluescreen"}
  4. local nazev = {"Startup", "Desktop", "Setting", "BSOD   "}
  5. local verze = {}
  6.  
  7. local data = fs.open(shell.dir().."/list.txt", "w")
  8. for i=1, #cesta do
  9.     if fs.exists (cesta[i]) then
  10.     local f=fs.open(cesta[i], "r")
  11.     verze[i]=f.readLine()
  12.     end
  13. data.writeLine(nazev[i].." -> "..verze[i])
  14. end
  15. data.close()
  16.  
  17. shell.run("edit list.txt")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement