diff --git a/WindowsProcessesGUI/out/artifacts/WindowsProcessesGUI_jar/WindowsProcessesGUI.jar b/WindowsProcessesGUI/out/artifacts/WindowsProcessesGUI_jar/WindowsProcessesGUI.jar
index 43ab217..3fe009d 100644
Binary files a/WindowsProcessesGUI/out/artifacts/WindowsProcessesGUI_jar/WindowsProcessesGUI.jar and b/WindowsProcessesGUI/out/artifacts/WindowsProcessesGUI_jar/WindowsProcessesGUI.jar differ
diff --git a/WindowsProcessesGUI/out/artifacts/WindowsProcessesGUI_jar/processesList.bat b/WindowsProcessesGUI/out/artifacts/WindowsProcessesGUI_jar/processesList.bat
new file mode 100644
index 0000000..2df05d4
--- /dev/null
+++ b/WindowsProcessesGUI/out/artifacts/WindowsProcessesGUI_jar/processesList.bat
@@ -0,0 +1,2 @@
+tasklist /fo list > tasks.txt
+@EXIT
\ No newline at end of file
diff --git a/WindowsProcessesGUI/out/artifacts/WindowsProcessesGUI_jar/processesTwoList.bat b/WindowsProcessesGUI/out/artifacts/WindowsProcessesGUI_jar/processesTwoList.bat
new file mode 100644
index 0000000..bdcec04
--- /dev/null
+++ b/WindowsProcessesGUI/out/artifacts/WindowsProcessesGUI_jar/processesTwoList.bat
@@ -0,0 +1,2 @@
+tasklist /fo list > tasksTwo.txt
+@EXIT
\ No newline at end of file
diff --git a/WindowsProcessesGUI/out/production/WindowsProcessesGUI/sample/Controller.class b/WindowsProcessesGUI/out/production/WindowsProcessesGUI/sample/Controller.class
index a9f1be5..cbfb91c 100644
Binary files a/WindowsProcessesGUI/out/production/WindowsProcessesGUI/sample/Controller.class and b/WindowsProcessesGUI/out/production/WindowsProcessesGUI/sample/Controller.class differ
diff --git a/WindowsProcessesGUI/out/production/WindowsProcessesGUI/sample/sample.fxml b/WindowsProcessesGUI/out/production/WindowsProcessesGUI/sample/sample.fxml
index cac2be0..20048e1 100644
--- a/WindowsProcessesGUI/out/production/WindowsProcessesGUI/sample/sample.fxml
+++ b/WindowsProcessesGUI/out/production/WindowsProcessesGUI/sample/sample.fxml
@@ -21,7 +21,7 @@
-
+
@@ -29,7 +29,7 @@
-
+
@@ -37,8 +37,10 @@
-
-
+
+
+
+
diff --git a/WindowsProcessesGUI/processesList.bat b/WindowsProcessesGUI/processesList.bat
new file mode 100644
index 0000000..2df05d4
--- /dev/null
+++ b/WindowsProcessesGUI/processesList.bat
@@ -0,0 +1,2 @@
+tasklist /fo list > tasks.txt
+@EXIT
\ No newline at end of file
diff --git a/WindowsProcessesGUI/processesTwoList.bat b/WindowsProcessesGUI/processesTwoList.bat
new file mode 100644
index 0000000..bdcec04
--- /dev/null
+++ b/WindowsProcessesGUI/processesTwoList.bat
@@ -0,0 +1,2 @@
+tasklist /fo list > tasksTwo.txt
+@EXIT
\ No newline at end of file
diff --git a/WindowsProcessesGUI/src/sample/Controller.java b/WindowsProcessesGUI/src/sample/Controller.java
index 8dda65a..f225edf 100644
--- a/WindowsProcessesGUI/src/sample/Controller.java
+++ b/WindowsProcessesGUI/src/sample/Controller.java
@@ -47,6 +47,36 @@ public void WriteToFileTwo()
e.printStackTrace();
}
}
+
+ public void WriteToFileOneList() {
+ String batch = "processesList.bat";
+ String command = "cmd /c start \"\" ";
+ try {
+ //The executables will be written to a text file
+ Process p = Runtime.getRuntime().exec(command + batch);
+ Thread.sleep(1000);
+ ReadFileOne();
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ }
+
+ public void WriteToFileTwoList()
+ {
+ String batch = "processesTwoList.bat";
+ String command = "cmd /c start \"\" ";
+ try {
+ //The executables will be written to a text file
+ Process p = Runtime.getRuntime().exec(command + batch);
+ Thread.sleep(1000);
+ ReadFileTwo();
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
public void ReadFileOne() throws IOException {
processesOne = new ArrayList<>();
BufferedReader reader = new BufferedReader(new FileReader(new File("tasks.txt")));
@@ -112,4 +142,7 @@ public void UnFilter() throws IOException {
ReadFileOne();
ReadFileTwo();
}
+
+
+
}
diff --git a/WindowsProcessesGUI/src/sample/sample.fxml b/WindowsProcessesGUI/src/sample/sample.fxml
index cac2be0..20048e1 100644
--- a/WindowsProcessesGUI/src/sample/sample.fxml
+++ b/WindowsProcessesGUI/src/sample/sample.fxml
@@ -21,7 +21,7 @@
-
+
@@ -29,7 +29,7 @@
-
+
@@ -37,8 +37,10 @@
-
-
+
+
+
+