here is my code:
write("Drive Side: ")
local a = io.read()
write("Disk Name: ")
local B = io.read()
print("writing label to disk")
sleep(2)
disk.setLabel(a, :)/>/>
if disk.setLabel == "false" then
print("Failed to find disk/drive")
else
print("Disk Label Set Successfully")
end
ok, so it will set the label to the disk and everything and will print Disk label set successfully. but when i put in a invalid drive side it just says "disk:3: Invalid Side."but what i want it to say is that Failed to find disk/drive.
i also noticed on the disk api on the wiki is that the function
disk.setlabel()returns nil.
so i tried putting
if disk.setLabel == "nil" thenand that did not work either.
can anyone help me out here?
thanks -Cheeky











