OS.execute comand

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Firty
var test:Array = []
var temp:PoolStringArray = ["mspaint /pt f:test.png"]
var _a = OS.execute("CMD.exe", temp, true, test)
print(test)

or

var test:Array = []
var _a = OS.execute("CMD.exe", "mspaint", "/pt", "f:test.png", true, test)
print(test)

Return: Unicode error: invalid utf8
I’m using the same ping method.
I made a program for a knitwear, using godot and it is 99% ready. I dont can print the generated pngs, or generate pdf … This command above if executed in cmd works perfectly.

OS.execute("mspaint.exe",["/p","c:test.png"],false)

:smiley:

Firty | 2020-11-18 19:44