Batch file examples

Automation Workshop includes Execute script Action which, besides supporting other scripting formats, can execute batch file scripts automatically. The basic batch file script examples provided below are aimed at giving the user a rather general idea how to integrate batch files into the flow of automated processes.

The data communication with other scripts is based on screen output. The screen output of the script can be retrieved by using Variable Wizard from subsequent Execute script Action. It is possible to retrieve either full screen output or any of the first six output lines separately.

Batch file example #1
  • @echo off
    set text=Hello world!
    echo %text%
Batch file example #2
  • @echo off
    set text="Hello my example world!"

    for /f "tokens=2,3" %%i in (%text%) do (
       rem my example
       echo %%i %%j

If you have any questions, please do not hesitate to contact our support team.

© 2001–2019 Febooti Ltd.