Neil C. Obremski
  • About
  • Blog
  • Music
    • Moo
    • Necros
    • colbie
    • TravelEra
  • CPP
    • Multi Dimension Arrays and Pointer Pointers
    • Structures
  • Tech
    • ASP
    • Apache2 SSL Windows
    • Celery
    • Chromebook
    • Django
    • FFMPEG
    • IIS
    • JS >
      • Save Binary File to Disk in JavaScript
      • Simple JavaScript/AJAX Optimizations
    • Kindle Self-Publishing
    • Linux Shell
    • Mac OS X
    • QB
    • Pyodbc
    • SQL
    • Subversion for VSS Users
    • VSS
    • WinHttp
    • WSH
  • Games
    • Daggerfall
    • Minecraft
    • Thief >
      • Install Thief on 2000/XP
      • Run Thief without CD
      • Fix Thief Freeze
+1 (206) 795-1327

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:

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.
Submit
Proudly powered by Weebly