Turn off Vray Warning

I am trying to batch process a whole bunch of max files using the awesome http://www.paulneale.com/scripts/batchItMax/batchItMax.htm

This is a really handy script for people with little or no maxscript

Everything is working fine except whenever I get stuck with 2 dialogue boxes saying
1 it was created with an older version of vray
2 That the vray sun and sky are legacy

I have to sit here pressing ok to keep the batch process running.

Is there anyway to stop vray doing this?

Yes, use the following MaxScript command:

setVRaySilentMode()

Best regards,
Vlado

Legend! worked like a charm.