powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Java [игнор отключен] [закрыт для гостей] / Удаление процессом в винде
3 сообщений из 3, страница 1 из 1
Удаление процессом в винде
    #39384996
olegbank
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Нужно реализовать на Java приложение ,которое снимает в Windows все процессы с пределенным именем. Как? Если конкретно ,прибить Хром с процессами плагинов
...
Рейтинг: 0 / 0
Удаление процессом в винде
    #39385010
Фотография Паша01
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
аif you want to kill external processes (which you did not spawn from your Java app), then one thing you can do is to call O/S utilities which allow you to do that. For example, you can try a Runtime.exec() on kill command under Unix / Linux and check for return values to ensure that the application was killed or not (0 means success, -1 means error). But that of course will make your application platform dependent.


http://stackoverflow.com/questions/6356340/killing-a-process-using-java
...
Рейтинг: 0 / 0
Удаление процессом в винде
    #39385052
Фотография Usman
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Паша01аif you want to kill external processes (which you did not spawn from your Java app), then one thing you can do is to call O/S utilities which allow you to do that. For example, you can try a Runtime.exec() on kill command under Unix / Linux and check for return values to ensure that the application was killed or not (0 means success, -1 means error). But that of course will make your application platform dependent.


http://stackoverflow.com/questions/6356340/killing-a-process-using-java добавлю:Taskkill - https://technet.microsoft.com/ru-ru/library/bb491009.aspx Parameters/fSpecifies that process(es) be forcefully terminated. This parameter is ignored for remote processes; all remote processes are forcefully terminated/tSpecifies to terminate all child processes along with the parent process commonly known as a tree kill.
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / Java [игнор отключен] [закрыт для гостей] / Удаление процессом в винде
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]