-2

Find running apps in windows which can be seen in task manager under Apps Section. I want java code for getting that particular Apps list. i am able to get whole running background processes but i want running APPLICATION which shows under Apps tab in Task manager.

Maulik
  • 1
  • 2
  • 2
    Have you tried anything? First google result for the query "find running apps using java" gives this: http://stackoverflow.com/questions/54686/how-to-get-a-list-of-current-open-windows-process-with-java – Pramod Karandikar Mar 02 '15 at 08:15
  • JNI/JNA intergration – MadProgrammer Mar 02 '15 at 08:27
  • i have seen that answer. It shows whole background process. I just need Application running which are under Apps in task manager. How could i filter it?? – Maulik Mar 02 '15 at 08:53
  • You can use the Windows [tasklist](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/tasklist) command as described in the accepted answer of [How to get a list of running processes in Java](https://stackoverflow.com/a/41728351/1782997). Though this command has several options it's unlikely going to provide _exactly_ what you want which means you'll probably have to parse its output and get the information relevant to you from it. – Attila T Nov 28 '22 at 10:00

1 Answers1

0

You can try with "qprocess" on cmd --> easy find command on gg ru run on java

NamNguyen
  • 21
  • 6