This documentation constantly improves and is under construction

<aside> ⭐

Reviews (These are the written reviews from the old Unreal Engine Marketplace)

</aside>

image.png

Quick Information about Inputs:

The path you need to input should be like this:

X:\Example\Example\MyBatchFile.bat

“Script” is just your batch file code

The directory should be like this:

X:\Example\Example\

The File Name should be like this:

Example

A good example you could try when using the “Run .bat File with Return Message” node is:

“systeminfo” or “tasklist”

You can also use “systeminfo /fo CSV” and combine the string output of the async node with the “systeminfo /fo CSV to Struct” node in order to get a struct containing every information about the system.

If you just want to quickly run a .bat script you can use the “Run .bat Script” node. This allows you to run a .bat script but without a return value. Instead of a return value, you get better performance, a fail-saver node, and no waiting times like on the async node. An example as the “Script” input would be “start cmd /k echo Hello, World!”. This creates when executed a new cmd window which says “Hello, World!”.

To create a .bat (Batch) file you can use the “Create .bat File” node. Inputs are “Script” in which you should input the script/content of your .bat file. An example for that is to use “start cmd /k echo Hello, World!”. This creates when executed a new cmd window which says “Hello, World!”. For the File Name you can choose any name you want but without setting the file type. (e.g. “MyBatchFile”. NOT “MyBatchFile.bat”). The last part is the directory you need to input. This is just where the file gets saved (e.g. “X:\Unreal Engine\”)

To run any .bat file or the file we’ve just created you can use the “Run .bat File” node. This node just runs the .bat file. The result of it when using “start cmd /k echo Hello, World!” should be a new cmd window that opens up saying “Hello, World!”. The path should look like this “X:\Unreal Engine\MyBatchFile.bat”