0

I started a batch script that activates Robocopy to copy some really big folder from some source to a destination.

When I run the script I can see the cmd with Robocopy working.

What I want to know is if there is a way for me to kill that Robocopy task via taskkill? Say by another batch script.

David8988
  • 79
  • 1
  • 1
  • 7
  • 1
    taskkill /F /IM robocopy.exe –  Aug 05 '17 at 12:32
  • You'd need to close the `cmd.exe` process in which the robocopy batch script was running. To do that, I'd suggest you use a known title or command invoked so that you can parse and identify the item to send to `taskkill`. Of course ending a robocopy operation before it is finished isn't usually my recommendation. – Compo Aug 05 '17 at 12:42
  • LotPings's advice worked perfect. Thanks – David8988 Aug 05 '17 at 13:24

1 Answers1

0

LotPings's advice: "taskkill /F /IM robocopy.exe" worked perfect.
Thank you

David8988
  • 79
  • 1
  • 1
  • 7
  • For me it "worked perfect" (reported successful kill) until I saw it still sitting in processes list, and still blocking some other processes. – Slava May 06 '18 at 12:16