user1700132
user1700132

Reputation: 11

Windows Script Host Error when script run in command prompt

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

Answers (1)

Kul-Tigin
Kul-Tigin

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

Related Questions