Shell.setDir

From ComputerCraft Wiki
Revision as of 10:07, 19 May 2013 by AfterLifeLochie (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Grid Redstone.png  Function shell.setDir
Sets the working 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 working directory.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox