|
|
|
Удаление процессом в винде
|
|||
|---|---|---|---|
|
#18+
Нужно реализовать на Java приложение ,которое снимает в Windows все процессы с пределенным именем. Как? Если конкретно ,прибить Хром с процессами плагинов ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.01.2017, 15:00 |
|
||
|
Удаление процессом в винде
|
|||
|---|---|---|---|
|
#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, 15:30 |
|
||
|
Удаление процессом в винде
|
|||
|---|---|---|---|
|
#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. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.01.2017, 18:19 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=39384996&tid=2123260]: |
0ms |
get settings: |
11ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
100ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
57ms |
get tp. blocked users: |
2ms |
| others: | 232ms |
| total: | 445ms |

| 0 / 0 |
