Can I execute multiple commands at one time with a tSystem component?

 Answer

You can execute multiple system commands at one time using only one tSystem component,  instead of using several tSystem components to execute each command. The following section, we illustrate respectively the solutions by examples on different operating system: Windows and Linux.

On Windows

On Windows, you can execute multiple system commands at one time on a tSystem component using this format,  the different commands are connected with & symbol.

"cmd / c  command1 & command2 & command3 & ..."

For example:

"cmd / c  mkdir dir1 & mkdir dir2"

On Linux

On Linux, the different commands are connected with ; symbol.

"command1 ; command2 ; command3 ; ..."

For example:

"touch file1.txt ; touch file2.txt"
Version history
Revision #:
1 of 1
Last update:
‎04-17-2017 05:15 PM
Updated by:
 
Labels (1)
Contributors