Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java launch exe

import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
import java.nio.file.Path;//our imports

public static void main(String[] args) throws IOException {
  String path = "/example:/example/example.exe/"; //the absolute path
  open(path); 
}

public static void open(String targetFilePath) throws IOException {
  Desktop desktop = Desktop.getDesktop();
  desktop.open(new File(targetFilePath));//open the file
}
Comment

execute exe java

Runtime.getRuntime().exec("c:program files	est	est.exe", null, new File("c:program files	est"));
Comment

PREVIOUS NEXT
Code Example
Java :: Java Writer Using FileWriter 
Java :: list to map of list java 8 
Java :: make edittext not editable android 
Java :: simple function java 
Java :: java logger with different colors 
Java :: java hello word 
Java :: how to set boolean to false if null java 
Java :: multiplication program java 
Java :: java get attributes from class 
Java :: java is list ordered 
Java :: resize array in java 
Java :: set solid color background android programatically in drawable 
Java :: loop through java object 
Java :: jsonArray to list in java 
Java :: for java 
Java :: java stop script 
Java :: set spring context 
Java :: android ecode base64 
Java :: runnable java 
Java :: arraylist to string 
Java :: H2 enabling remote database creation first 
Java :: fixed length array powershell 
Java :: java arraylist remove 
Java :: java list get first element 
Java :: float java 
Java :: phone number format java 
Java :: convertir string a char java 
Java :: how to strip spaces in java using split with other delimiters 
Java :: set matrix zeros 
Java :: abstract code in java 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =