Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Script by Savage_Me55iah of CraftAU.com.au--
- --Other Savage_Me55iah scripts @ http://pastebin.com/u/Savage_Me55iah
- --INSTRUCTIONS ON USE--
- --Instruction video on http://youtube.com/savagemessiah5
- --Contact Savage_Me55iah @ CraftAU.com.au or http://www.computercraft.info/forums2/ with suggestions/fixes/bugs
- local scriptName = "Run"
- fileDetail = fileDetail or {}
- fileDetail[scriptName] = {["version"] = 0.1, ["pastebin"] = "ZtUrtP3p"}
- local tArgs = {...}
- if tArgs[1] == "update" then
- print("UPDATING") shell.run("pastebin get "..fileDetail[scriptName].pastebin.." "..scriptName.."_update")
- if fs.exists(scriptName.."_update") then fs.remove(shell.getRunningProgram()) fs.copy(scriptName.."_update", shell.getRunningProgram()) fs.remove(scriptName.."_update") print("UPDATE SUCCESS") else print("UPDATE FAILED") end
- end
- -----------------------------------------------------------------------------------------------------------
- -- Srcipt --
- -----------------------------------------------------------------------------------------------------------
- -- BACKSLASH WAS MESSING WITH MY SCRIPT EDITOR, I WILL NOT BE JUDGED!
- function BS() local result = "\\" return result end
- local functionNum = "0"
- local programs = fs.list("Program")
- for t,u in pairs(programs) do print("running: ".."Program"..BS()..u) shell.run("Program"..BS()..u) end
- coroutinemanip.create(functionNum)
- coroutinemanip.run(functionNum)
Advertisement
Add Comment
Please, Sign In to add comment