Windows Script Host
CScript Forward Slashes |
Written May 2nd, 2007.
|
I was banging my head against the wall getting the following error when launching cscript.exe (Windows Scripting Host) from a .NET application:
Boom! Wonderfully descriptive error, I can only imagine the code underneath which is buggin' out.
CScript Error: Execution of the Windows Script Host failed. (Not enough storage is available to complete this operation. )I couldn't understand what operation and how it couldn't have enough storage and nothing turning up on Google seemed to help. It turns out that it was caused by using a forward slash at the end of a an argument without enclosing it in quotes. You can see this even if you don't have a script to run, just try this at a command-prompt:
cscript a/
Boom! Wonderfully descriptive error, I can only imagine the code underneath which is buggin' out.