[Documentation] Add instruction how to execute built-in commands of various shells.

(cherry picked from commit 9faf1e027a)
This commit is contained in:
bruvzg 2022-01-17 14:53:28 +02:00 committed by Rémi Verschelde
parent 9e7bf8fa73
commit d0d1e81696
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@
OS.execute("CMD.exe", ["/C", "cd %TEMP% && dir"], true, output)
[/codeblock]
[b]Note:[/b] This method is implemented on Android, iOS, Linux, macOS and Windows.
[b]Note:[/b] To execute a Windows command interpreter built-in command, specify [code]cmd.exe[/code] in [code]path[/code], [code]/c[/code] as the first argument, and the desired command as the second argument.
[b]Note:[/b] To execute a PowerShell built-in command, specify [code]powershell.exe[/code] in [code]path[/code], [code]-Command[/code] as the first argument, and the desired command as the second argument.
[b]Note:[/b] To execute a Unix shell built-in command, specify shell executable name in [code]path[/code], [code]-c[/code] as the first argument, and the desired command as the second argument.
</description>
</method>
<method name="find_scancode_from_string" qualifiers="const">