Posted 20 July 2014 - 01:37 AM
Hello guys, it's #4N0N B1N4RY here and in this thread i want to release my Super Simple Useless :D/> program
It is for renaming disks (Can choose side of drive)
Please don't hate :D/> It's my first program
Peace, B1N4RY
Have a nice day ^_^/>
It is for renaming disks (Can choose side of drive)
os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Which position is your disk drive with desired disk placed ?\n(left, right, back, front, top, bottom)\n")
textutils.slowPrint("Position: ")
term.setCursorPos(11,5)
input2 = read()
nothin2 = ""
if input2 ~= nothin2 then
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Welcome to disk renamer by #4N0N B1N4RY\nPlease type in disk name you want on disk in disk drive on ")
term.setCursorPos(10,3)
textutils.slowPrint(input2)
term.setCursorPos(1,5)
textutils.slowPrint("Name of disk: ")
term.setCursorPos(15,5)
input = read()
nothin = ""
if input ~= nothin then
disk.setLabel(input2,input)
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Disk renamed !")
sleep(1)
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Rebooting Computer and Ejecting disk")
sleep(1)
disk.eject("left")
disk.eject("right")
disk.eject("back")
disk.eject("front")
disk.eject("top")
disk.eject("bottom")
os.reboot()
else
textutils.slowPrint("\nDisk Label cannot be nothing")
sleep(2)
term.clear()
term.setCursorPos(1,1)
os.reboot()
end
end
Please don't hate :D/> It's my first program
Peace, B1N4RY
Have a nice day ^_^/>