Difference between revisions of "Shell.setDir"
From ComputerCraft Wiki
m ("she'll" -> "shell" (API typo)) |
m (Category operation: +Category:API_Functions) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
{{Function | {{Function | ||
|name=shell.setDir | |name=shell.setDir | ||
| Line 7: | Line 5: | ||
|returns=[[nil]] | |returns=[[nil]] | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
| − | |desc=Sets the | + | |desc=Sets the working 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 working directory. | |
| − | + | ||
}} | }} | ||
| + | |||
| + | [[Category:API_Functions]] | ||
Latest revision as of 05:07, 20 May 2013
| Sets the working 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 working directory.