Search found 2 matches

by Leosko
02 Dec 2021 12:45
Forum: DOS Batch Forum
Topic: Batch taskkill
Replies: 2
Views: 3107

Re: Batch taskkill

Squashman wrote:
01 Dec 2021 13:55
Create a file with each hostname on a separate line.

Code: Select all

FOR /F "usebackq delims=" %%G IN ("hostnames.txt") DO taskkill /S "%%G" /IM "precess.exe"
Perfect, it working. :) Thanks
by Leosko
01 Dec 2021 10:53
Forum: DOS Batch Forum
Topic: Batch taskkill
Replies: 2
Views: 3107

Batch taskkill

Hello ,

i need help with batch command. I would like to kill one process but on a lot of hosts. Single command is taskkill s/"hosname" /FI "precess.exe" but i want to kill same process on approx. 100 hosts.
Can anybody help me?