Hi,
I start a robocopy command within a .cmd by a vbs script for that robocopy runs in background.
VBS:
Dim WinScriptHost
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "C:\copy.cmd" & Chr(34), 0
Set WinScriptHost = Nothing
copy.cmd:
robocopy.exe C:\Temp1\ C:\Temp2 *.csv /MON:1 /mov
I can stop robocopy only with the "taskkill" command and not by the taskmanager.
When i stop the process in the taskmanager, robocopy stays running (it still moves the files).
When i execute the robocopy command directly in the command prompt (not in the background by VBS), i can stop it by the taskmanager.
Why?