disk.setLabel

disk.setLabel
Function
Syntax
disk.setLabel(
  • side : string
  • label? : string
)

Returns number ID
API disk
Source CC:Tweaked (source)

Set the label of a disk.

ExampleSet disk label
Sets the label of the disk inserted in the disk drive on the top to "Disk123".
Code
disk.setLabel("top", "Disk123")
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.