Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | idkgamedev |
I am having trouble running this code.
var output = []
OS.execute(
'"C:\\Users\\USERNAME\\Desktop\\bat.bat"',
[],
false,
output
)
print(output)
I want it to run the batch file and print the result, but every time, it prints an empty array.
My batch file is very simple. It is just a hello world statement.
@echo off
echo Hello world
The expected outcome is Hello world
.