Launch() function on win10 + Processing 3

#1

Hello, I’m trying to use the launch() function to run an .exe developed and exported for win 10 but it do not works. It have worked well on mac.
Either the exec() function do not works on win10.
I’ve tried more path possibilities (commented in the code), they worked well when I launch the app from terminal but not when I run the sketch :frowning:
Nothing happens.

void setup() {
  size(200, 200);
}

void draw() { 
  // draw() must be present for mousePressed() to work
}

void mousePressed() {

  //C:\Users\bin
  //sketchPath()
  //exec(sketchPath() + "/time_test");
  //exec(sketchPath()+"\\time_test.exe" );
  launch("/Users/bin/Processing/launch_test/time_test");
  println(sketchPath()+"/time_test.exe");

 /* Process p = launch(sketchPath() + "/time_test.exe"); 
  try {
    int result = p.waitFor();
    println("the process returned " + result);
    println(sketchPath());
  } 
  catch (InterruptedException e) {
  }*/

   /*
  Process p = exec("/Users/bin/bin//time_test.exe", "waiting until done");
     try {
     int result = p.waitFor();
     println("the process returned " + result);
     } 
     catch (InterruptedException e) {
     }*/
  }

How can I make it work?
Thanks in advance!
mariana