Difference between revisions of "File.setdir"
Jump to navigation
Jump to search
(included Farmtronics and note about quotes) |
|||
| Line 1: | Line 1: | ||
| − | The <c>[[file]].setdir</c> method sets the current working directory in [[Mini Micro]] or [[command-line MiniScript]]. | + | The <c>[[file]].setdir</c> method sets the current working directory in [[Mini Micro]], [[Farmtronics]], or [[command-line MiniScript]]. |
=== Arguments === | === Arguments === | ||
| Line 10: | Line 10: | ||
|} | |} | ||
| − | In [[Mini Micro]], <c>[[cd]]</c> is standard shorthand for <c>[[file]].setdir</c>. | + | In [[Mini Micro]] and [[Farmtronics]], <c>[[cd]]</c> is standard shorthand for <c>[[file]].setdir</c>. Note that you still need quotation marks around the path. |
[[Category:Mini Micro]] | [[Category:Mini Micro]] | ||
[[Category:Command-Line MiniScript]] | [[Category:Command-Line MiniScript]] | ||
| + | [[Category:Farmtronics]] | ||
Latest revision as of 14:15, 18 January 2025
The file.setdir method sets the current working directory in Mini Micro, Farmtronics, or command-line MiniScript.
Arguments
| Parameter Name | Type | Default Value | Meaning |
|---|---|---|---|
| path | string | the relative or absolute location of the folder to set as the working directory |
In Mini Micro and Farmtronics, cd is standard shorthand for file.setdir. Note that you still need quotation marks around the path.