Perfect, it working. ThanksSquashman wrote: ↑01 Dec 2021 13:55Create 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"
Search found 2 matches
- 02 Dec 2021 12:45
- Forum: DOS Batch Forum
- Topic: Batch taskkill
- Replies: 2
- Views: 3107
Re: Batch taskkill
- 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?
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?