0 votes
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.

in Engine by (220 points)
OS.execute("mspaint.exe",["/p","c:test.png"],false)

:D

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.