Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArg = {...}
- local InstallFile = tArg[1]
- local Things = {}
- local Paster = "os/System/Scripts/SilentPaster.lua"
- function Download(I)
- shell.run(Paster,"get",Things[I][3],Things[I][2])
- if Things[I][4] == true then
- local Path = fs.combine("os/System/Saved/Shortcuts",Things[I][1])
- local file = fs.open(Path,"w")
- file.writeLine(Things[I][1])
- file.writeLine(Things[I][2])
- file.writeLine(Things[I][6])
- file.writeLine(Things[I][5])
- file.close()
- else
- end
- end
- local Li = fs.open(InstallFile,"r")
- Things = textutils.unserialize(Li.readAll())
- Li.close()
- for i = 1, #Things do
- Download(i)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement