Difference between revisions of "Shell.setDir"

From ComputerCraft Wiki
Jump to: navigation, search
(Finished the page.)
m (Category operation: +Category:API_Functions)
 
Line 5: Line 5:
 
  |returns=[[nil]]
 
  |returns=[[nil]]
 
  |addon=ComputerCraft
 
  |addon=ComputerCraft
  |desc=Sets the running directory.
+
  |desc=Sets the working directory.
 
  |examples={{Example
 
  |examples={{Example
  |desc=Sets the Directory.
+
  |desc=Sets the directory.
 
  |code=shell.setDir("rom")
 
  |code=shell.setDir("rom")
 
  |output=rom> _ (Set to rom)
 
  |output=rom> _ (Set to rom)
Line 13: Line 13:
  
 
  |notes=
 
  |notes=
* It does not Output anything, it just sets the Directory.
+
* It does not output anything, it just sets the working directory.
 
  }}
 
  }}
 +
 +
[[Category:API_Functions]]

Latest revision as of 05:07, 20 May 2013

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.