Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local FileList = fs.list("disk/") --Table with all the files and directories available
- for _, file in ipairs(FileList) do --Loop. Underscore because we don't use the key, ipairs so it's in order
- if not fs.isDir(file) then
- shell.run("cp", "disk/"..file, file)
- print(file) --Print the file name
- end
- end --End the loop
- shell.run("delete", "startup")
- shell.run("copy", "setup", "startup")
- shell.run("textedit", "settings")
- shell.run("textedit", "items")
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.white)
- term.clear()
- local image = paintutils.loadImage("bank")
- paintutils.drawImage(image, 1, 1)
- term.setCursorPos(16, 8)
- term.write("Please remove card")
- while disk.hasData("top") do
- os.queueEvent("randomEvent")
- os.pullEvent()
- end
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment