Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when you run a script that is encoded by using Script Encoder (Screnc.exe) in Windows Server 2003 or in Windows XP


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You use Script Encoder (Screnc.exe) to encode a script.
  • You run the encoded script on a computer that is running Windows Server 2003 or Windows XP.
In this scenario, you receive an error message that resembles the following:
Script Error
Line: Line_Number
Char: Character_number
Error: Invalid character
Note The Screnc.exe script encoder uses the Jscript.dll file or the Vbscript.dll file to encode a script. The Jscript.dll file or the Vbscript.dll file is included in Windows Internet Explorer 7.

↑ Back to the top


Cause

This problem occurs because the non-encoded scripts use comments as encoding markers. These comments resemble one of the following:
  • '**Start Encode** for Microsoft Visual Basic Scripting Edition (VBScript)
  • //**Start Encode** for JScript
These comments and the lines that come before them should be visible in the encoded script. However, they are invisible.

↑ Back to the top


Resolution

To resolve this problem, download and then install Windows Script 5.7. To download Windows Script 5.7, visit one of the following Microsoft Web sites:

Windows Script 5.7 for Windows Server 2003Windows Script 5.7 for Windows XP

↑ Back to the top


More information

For more information about Script Encoder, visit the following Microsoft Web site:For more information about Windows Script 5.7, visit the following Microsoft Web site:

↑ Back to the top


Keywords: KB948527, kbexpertiseinter, kbprb

↑ Back to the top

Article Info
Article ID : 948527
Revision : 1
Created on : 2/18/2008
Published on : 2/18/2008
Exists online : False
Views : 469