Topic was automatically imported from the old Question2Answer platform.
Asked By
Blockyheadman
I’m trying to run an exe file on my launcher type program & I can’t seem to make it happen. I’ve done tests to see if the file is noticed in the system and it checks out. I just can’t seem to get OS.execute() to work.
I changed my user:// directory by the way to this:
I also added an extra folder inside the user:// folder called apps using some code so keep that in mind.
Here’s what my checking piece looks like,
if (app.file_exists("user://apps/app.exe")):
OS.alert("App Found!", "Found!")
It turns out that when I try to use user:// directly, it doesn’t take it but if I put the path into a variable like this: var app_file = OS.get_user_data_dir()+"/"+"apps"+"/"+"app.exe"
And use the variable as the file path for execution, then it functions properly.