Batch processing

With version 4.3.1 a simple batch processing functionality is introduced. This functionality uses the Windows Command Processor (command line). Processing a batch file (with the extension: .bat) Ple4Win is started and the accompanied project is set back to design function 1 and processed up to the highest design function with sufficient input data. When the last function is processed the project is saved and the control is given back to the batch file. Using a batch file a user can process a number of projects in sequence, for instance during the night. During a batch process the form shown below is presented in front of the main form of the program and the entire user interface of Ple4Win is disabled.

BatchForm

The only enabled 'button' is the cross next to the circular activity indicator. Pressing the cross will stop Ple4Win immediately and no changed data of the current project will be saved! An example of a batch file is shown below:

 

"C:\Program Files (x86)\Ple4Win professional\Ple4Win.exe" /r "C:\Ple4Win data\Project1.plex"
"C:\Program Files (x86)\Ple4Win professional\Ple4Win.exe" /r "C:\Ple4Win data\Project2.plex"
"C:\Program Files (x86)\Ple4Win professional\Ple4Win.exe" /r "C:\Ple4Win data\Project3.plex"
... ... ...
"C:\Program Files (x86)\Ple4Win professional\Ple4Win.exe" /r "C:\Ple4Win data\ProjectN.plex"

Double clicking on a .bat file the command window is presented and each row in the batch file is processed. In the example above, Ple4Win is started (left part of the row), the "/r" indicates Ple4Win runs in batch mode and has to process the project next to the "/r" command. So first Project1.plex is run and when finished Project2.plex is run up to ProjectN.plex

Be aware that stopping Ple4Win as described above only aborts the calculation of the current project and the control is given back to the batch file. When more commands are available Ple4Win will be started again for the next project. For more experienced batch file users: when aborting Ple4Win the 'errorlevel' is set to 9 and the batch file can react on it. The batch file then can look like this:

... ... ...
"C:\Program Files (x86)\Ple4Win professional\Ple4Win.exe" /r "C:\Ple4Win data\Project2.plex"
if errorlevel 9 exit
"C:\Program Files (x86)\Ple4Win professional\Ple4Win.exe" /r "C:\Ple4Win data\Project3.plex"
if errorlevel 9 exit
... ... ...

 


BatchProcessing, last changed: 14/09/2016

See also:

Main Screen