Skip to content
Snippets Groups Projects
Commit 25239d7d authored by Branden's avatar Branden
Browse files

Completed isRunning method

parent 9d644fa6
No related branches found
No related tags found
2 merge requests!65Prototype,!48Feature detect program/launch application
......@@ -12,8 +12,10 @@ public class DetectProgram {
ProcessBuilder processbuildier = new ProcessBuilder("tasklist.exe");
Process process = processbuildier.start();
String tasks = toString(process.getInputStream());
return true;
return tasks.contains(Name);
}
public static String toString(InputStream input){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment