From 7eb8339f6c3da9aa81bf25f7d26d9da75da49d72 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 17 Jan 2022 14:53:28 +0200 Subject: [PATCH] [Documentation] Add instruction how to execute built-in commands of various shells. (cherry picked from commit 9faf1e027a26cb1207d635a45ab153502722ae54) --- doc/classes/OS.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml index 8bcd88b4b04..7363232c18d 100644 --- a/doc/classes/OS.xml +++ b/doc/classes/OS.xml @@ -115,6 +115,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.