The EXEC Tag

    Syntax: {EXEC::Batchfile::file::success::no success} {EXEC::Batchfile::file::success::no success::file path}
    Function:

    The EXEC tag will call a specified DOS batchfile with a file as argument. The batchfile itself will use this argument and return with an errorcode whether the operation was successful or not. You may also specify a path as last argument. If no path is defined, the batchfile and the textfile will be stored shortly in the default temp directory.Both files will be deleted after finishing the compilation.

    If no exception occurres, PReP will carry out the next argument ("success") or it will go to the "no success" instructions.

    The output text of the batch file is stored in a tag named EXEC_MESSAGE.

    Example:

    {EXEC::anything.bat::anyfile.java::everything has worked!::some exception occurred}

    PReP will execute the "anything.bat" file with the "anyfile.java" file as argument. The "anything.bat" file may now execute the "anyfile.java" file and then return to the waiting PReP program. If everything was ok, PReP will output: "everything has worked!", or if an exception occurred: "some exception occurred".

Back