Difference between revisions of "Shell.setDir"
From ComputerCraft Wiki
m ("she'll" -> "shell" (API typo)) |
Jonjon1234 (Talk | contribs) (Finished the page.) |
||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
{{Function | {{Function | ||
|name=shell.setDir | |name=shell.setDir | ||
| Line 8: | Line 6: | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Sets the running directory. | |desc=Sets the running directory. | ||
| − | |examples= | + | |examples={{Example |
| + | |desc=Sets the Directory. | ||
| + | |code=shell.setDir("rom") | ||
| + | |output=rom> _ (Set to rom) | ||
| + | }} | ||
| + | |||
|notes= | |notes= | ||
| − | + | * It does not Output anything, it just sets the Directory. | |
| − | + | ||
}} | }} | ||
Revision as of 21:34, 9 December 2012
| Sets the running directory. | |
| Syntax | shell.setDir(string directory) |
| Returns | nil |
| Part of | ComputerCraft |
| API | shell |
Examples
| Sets the Directory. | |
| Code |
shell.setDir("rom")
|
| Output | rom> _ (Set to rom) |
Additional Notes
- It does not Output anything, it just sets the Directory.