You can trigger a callback in the dirscan probe called "_stop". This will cause the probe to shut down, but since the controller has it marked as being active it will restart it for you. It is also possible to call "_restart" and in most cases that is preferred, but it depends on how the restart function is coded in the probe. For dirscan I would probably go with "_restart".

You could also send "probe_deactivate" to the controller, followed by a "probe_activate", but that's probably more of a hassle to handle since there would be timing issues to work around.

Both the above require that you have permissions to do that however, so you will need to login with admin permissions as part of your script.

I'm not familiar with vbscript myself, so I can't provide the code, but in C it would be something like this (Note: pseudocode):

char *user = "administrator";

char *pass = "password";

char *probe = "/Domain/Hub/Robot/dirscan";

char *cmd = "_restart";

if (nimLogin(user,pass)) {

if (nimNamedRequest(probe,cmd,NULL,NULL,15)) {

nimLog(0,"ERROR!");

}

}

Note the use of nimNamedRequest, since that allows you to go through tunnels where required.

I took the script mentioned above and adjusted it to send a _restart command to a probe. For some reason, it did not like calling RequestNameS as a function rather than a sub. (Maybe the script never did work for me? I am not sure why I would have saved it then.) So I had to fix a couple of things, and here is what finally worked: