Has anyone ever run into a maximum VBScript script size?
I maintain a script that has gradually grown in size over the last five years.
Today I started to get the following cryptic error.
scriptname.wsf(39, 37) Windows Script Host: Cannot retrieve referenced URL : scriptname.vbs
When I looked at the script size, I saw that the current size was 523,581 bytes and the last working size was 524,574 bytes.
On a hunch, I trimmed out a few comments and got it back below the 512-kilobyte mark (524,288 bytes) and it works again.
I could not find anything about such a limit with a google search.
When it runs, the performance seems reasonable.
I am running on Windows XP SP 2, with all current patches, Windows Script Host Version 5.6.
Thanks, Bill Starr
Columbus, Indiana
Wed, 14 Mar 2007, 3:03 pm EDT