
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
15.01.2017, 15:00
|
|||
|---|---|---|---|
Удаление процессом в винде |
|||
|
#18+
Нужно реализовать на Java приложение ,которое снимает в Windows все процессы с пределенным именем. Как? Если конкретно ,прибить Хром с процессами плагинов ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
15.01.2017, 15:30
|
|||
|---|---|---|---|
Удаление процессом в винде |
|||
|
#18+
а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 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
15.01.2017, 18:19
|
|||
|---|---|---|---|
Удаление процессом в винде |
|||
|
#18+
Паша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. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=59&mobile=1&tid=2123260]: |
0ms |
get settings: |
9ms |
get forum list: |
21ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
86ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
50ms |
get tp. blocked users: |
2ms |
| others: | 230ms |
| total: | 422ms |

| 0 / 0 |
