Friday, September 23, 2011

Getting error box in vbscript

In vbscripting if there are errors on code we can see the errors on runtime through error box.

If the error on your machine is not popping on executing the vbscript through error box then you can follow below approach to enable it.

Generally issue comes if windows is taking cscript as a default engine to execute script. To change the default engine from cscript to wscript. you can do the following:

1. Right Click on Vb script file(the file you create with .vbs extension) ---> select "Open With" ---> select "Choose Program"
2. Click "Browse" button.
3. Navigate to "C:\Windows\System32\wscript.exe"
4. Click OK.

Done....You should see error box if there are any errors in the scripting file from now onwards....

No comments:

Post a Comment