We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello guys, i was working on my project when suddenly the following problem occured: I want to launch another (exported) processing file (.exe) and i can't manage to do it with neither launch () nor exec().
String a = "C:\\Users\\Niki\\Documents\\Processing\\ShapesDemo\\application.windows64\\ShapesDemo.exe";
launch(b);
I have tried different ways of writing it, such as String a[] = {"..."}, different slashes and so on. It opens pretty much everything but .exe files.
I would be really glad if I understand what's going wrong here. Cheers!
Answers
What Windows version? Check this:
https://forum.processing.org/two/discussion/comment/87388/#Comment_87388
Kf
I'm on Windows 7, his solution with the slashes didn't work here ;/
So far the solution with creating the bat file. In the release notes of Processing 3.2.4 they said they updated the documentation for exec() but no where to be found or not noticeable changes.
Kf
You might try something like this:
And now even complex .bat files don't run, only the most basic ones.
Thanks for the help, guys! Appreciate it
If this worked ok you can mark your post as answered.