Question : vbscript error messages

When using vbscript (.vbs) windows normally gives hints about syntax errors etc.

Now I have a new server (2003 R2) and it doesn't give these little meassages.  Where do I turn that on?  

Answer : vbscript error messages

Try running
cscript //H:WScript

and then run your code again.

What this will do is set the default script engine to WScript, which will show a message box if an error occurs.

Perhaps what is currently happening is that the default engine is CScript, so when you run a script, it flashes up in a DOS prompt, then disappears.

Have you also tried running the script directly from a command prompt with
cscript.exe c:\temp\myscript.vbs

That should keep the prompt open for you to see any errors.

Otherwise, in the code itself, you might have On Error Resume Next in there, which won't show any error messages at all.

Regards,

Rob.
Random Solutions  
 
programming4us programming4us