Is it possible to list running applications with full path? I tried to use the tasklist.exe, but I don't know how can I get the paths.
BufferedReader br = null;
String username = System.getProperty("user.name");
try {
Process p = Runtime.getRuntime().exec("tasklist /v /fo table");
br = new BufferedReader(new InputStreamReader(p.getInputStream()));
String s;
while ((s = br.readLine()) != null) {
if (s.contains(username)) {
System.out.println(s);
}
}