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. This article illustrates the solutions by examples on different operating systems: 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 an ampersand ("&") symbol.

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

 

For example:

"cmd / c  mkdir dir1 & mkdir dir2"

 

On Linux

On Linux, the different commands are connected with a semicolon (";") symbol.

"command1 ; command2 ; command3 ; ..."

 

For example:

"touch file1.txt ; touch file2.txt"
Version history
Revision #:
2 of 2
Last update:
‎06-30-2017 06:07 PM
Updated by:
 
Labels (1)
Tags (1)