Shell.setDir

From ComputerCraft Wiki
Revision as of 21:34, 9 December 2012 by Jonjon1234 (Talk | contribs) (Finished the page.)

Jump to: navigation, search
Grid Redstone.png  Function shell.setDir
Sets the running directory.
Syntax shell.setDir(string directory)
Returns nil
Part of ComputerCraft
API shell

Examples

Grid paper.png  Example
Sets the Directory.
Code
shell.setDir("rom")
Output rom> _ (Set to rom)

Additional Notes

  • It does not Output anything, it just sets the Directory.