ben695

download.sys

May 7th, 2014
514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. term.setBackgroundColor(colors.purple)
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. print("Glass downloader")
  5. print("")
  6. write("Name:")
  7. name=read()
  8. print("")
  9. write("Link:")
  10. local link=read()
  11. print("Downloading...")
  12. local download=http.get(link)
  13. local h=fs.open(name,"w")
  14. h.write(download.readAll())
  15. h.close()
  16. sleep(3)
  17. shell.run(".system/main.sys")
Add Comment
Please, Sign In to add comment