95Roadkill

Vinex TransferFromDisk

Oct 27th, 2014
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.83 KB | None | 0 0
  1. while true do
  2. term.clear()
  3. term.setCursorPos(18,5)
  4. write("Initializing..")
  5. sleep(1)
  6. term.setCursorPos(14,7)
  7. write("Connection Successful!")
  8. local d = 15
  9. term.setCursorPos(14,9)
  10. write("[")
  11. term.setCursorPos(36,9)
  12. write("]")
  13. repeat
  14. term.setCursorPos(d,9)
  15. write("-")
  16. sleep(.1)
  17. d = d + 1
  18. until d == 36
  19. fs.makeDir("Vinex")
  20. fs.copy("disk/Vinex/q", "startup")
  21. fs.copy("disk/Vinex/clear", "Vinex/clear")
  22. fs.copy("disk/Vinex/Alarm", "Vinex/Alarm")
  23. fs.copy("disk/Vinex/Cookie", "Vinex/Cookie")
  24. fs.copy("disk/Vinex/Bugs", "Vinex/Bugs")
  25. fs.copy("disk/Vinex/Ver", "Vinex/Ver")
  26. fs.copy("disk/Vinex/GUI", "Vinex/GUI")
  27. fs.copy("disk/Vinex/GUI2", "Vinex/GUI2")
  28. fs.copy("disk/Vinex/GUI3", "Vinex/GUI3")
  29. fs.copy("disk/Vinex/Log", "Vinex/Log")
  30. fs.copy("disk/Vinex/Log2", "Vinex/Log2")
  31. fs.copy("disk/Vinex/Note", "Vinex/Note")
  32. fs.copy("disk/Vinex/Note2", "Vinex/Note2")
  33. fs.copy("disk/Vinex/ClearLog", "Vinex/ClearLog")
  34. fs.copy("disk/Vinex/ResetLog", "Vinex/ResetLog")
  35. fs.delete("disk/startup")
  36. fs.delete("disk/Vinex")
  37. if disk.isPresent("bottom") == true then
  38. disk.setLabel("bottom", "Blank Disk")
  39. os.reboot(true)
  40. disk.eject("bottom")
  41. elseif disk.isPresent("top") == true then
  42. disk.setLabel("top", "Blank Disk")
  43. os.reboot(true)
  44. disk.eject("top")
  45. elseif disk.isPresent("right") == true then
  46. disk.setLabel("right", "Blank Disk")
  47. os.reboot(true)
  48. disk.eject("right")
  49. elseif disk.isPresent("front") == true then
  50. disk.setLabel("front", "Blank Disk")
  51. os.reboot(true)
  52. disk.eject("front")
  53. elseif disk.isPresent("back") == true then
  54. disk.setLabel("back", "Blank Disk")
  55. os.reboot(true)
  56. disk.eject("back")
  57. elseif disk.isPresent("left") == true then
  58. disk.setLabel("left", "Blank Disk")
  59. os.reboot(true)
  60. disk.eject("left")
  61. term.setCursorPos(11,11)
  62. print("Data Successfully Transfered")
  63. sleep(1)
  64. term.clear()
  65. os.reboot(true)
  66. break
  67. else
  68. end
  69. end
Advertisement
Add Comment
Please, Sign In to add comment