Cant taskkill vrayspawner2011.exe

Greetings,

through some post in here i could gather the info to start vray dr spawners by command execution
for example:

cmd /C start "vrayspawner2011" "C:\Program Files\Autodesk\3ds Max 2011\vrayspawner2011.exe"

but.

this dont work:

cmd /C "taskkill" "c:\windows\system32\taskkill.exe" /im vrayspawner2011.exe /f /t

status halt @ “PENDING” for about 1 hour then timeouts so it is either “deadline” that is blocking additional commands sent to that machine untill it sees the first result of the command or the “command” is wrong.

My questions to who may are:

1: how can i send execution commands but prevent it to wait for the returned results.

2:instead of sending command through command execution, i want bat files o be executed. a bat file with multiple commands like:

restart vray spawners:

cmd /C "taskkill" "c:\windows\system32\taskkill.exe" /im vrayspawner2011.exe /f /t
cmd /C start "vrayspawner2011" "C:\Program Files\Autodesk\3ds Max 2011\vrayspawner2011.exe"

any help is apreciated.

The issue is that the execute command option waits for the command to complete to capture stdout, and since vrayspawner runs indefinitely, it explains why it never “finishes”. We do have a script API that exposes remote commands and allows you to run them without waiting. Here’s an example:
viewtopic.php?f=11&t=5167&p=21202&hilit=vrayspawner#p21202

We should probably look at exposing the option to not wait for the command to finish from the Monitor as well.

Hope this helps!

  • Ryan