os.getComputerID
From ComputerCraft Wiki
Revision as of 20:00, 21 April 2013 by Hawk777 (Talk | contribs) (Add return type, example output, and more notes)
Returns a number which uniquely identifies the computer and which is the name of the directory in the world’s computer directory containing the computer’s data. | |
| Syntax | os.getComputerID() |
| Returns | int the disk ID |
| Part of | ComputerCraft |
| API | OS |
Examples
| Prints the computer ID. | |
| Code |
print(os.getComputerID()) |
| Output | 1 |