Error code in vb.vbs for exceptions

hossnine

New member
Hello,

I'm working on a script that will call quickstream fix via vb.vbs (cscript //nologo "%VRDAppDir:"=%\vp.vbs" "%Src:"=%" "%Dest:"=%" /t1 /na /q). I've got that part of the script working just fine but I'd like to be able to capture the return code from vb.vbs and redirect the script based on that return code.

When the script runs fine I get a return code 0 and all is well. BUT if VideoReDo chokes on the video stream (such as 'Mpeg stream error: File may be DVR-MS "restricted content".') then vb.vbs aborts and still returns a return code of 0 (successful).

Is there a better way to do this from a batch or vbs script?

Also, anyone who has a recommendation for slapping who ever came up with this lame duck method of DRM I'm all ears. It is absolute BS that a person can't trim commercials out of a "I dream of Jeannie" rerun just because some brain has flagged the file WM/WMRVContentProtected-False & WM/WMRVContentProtectedPercent-5.
 
Top Bottom