Reputation: 11
I got the following error when I ran a script at the command prompt:
Windows Script Host Error
--------------------------
Script : D:\viru\vbs\sample.vbs
Line: 1
Char: 1
Error: Expected Statement
Code : 800A0400
Source: Microsoft VBScript Compilation Error.
What does it mean, and what can I do about it?
Upvotes: 0
Views: 2881
Reputation: 16950
Line 1 char 1. It looks like due to file encoding.
Save your script file as UTF-8 Without Bom, ANSI or Unicode (Little Endian) encoded.
Upvotes: 1