0

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?

2
  • 2
    Post your script. We have no idea what the script is trying to do. It sounds like your script probably has a syntax problem. Commented Sep 26, 2012 at 14:20
  • Sounds like you have an error on line 1 of your code. You should probably post it... your code that is. Commented Sep 26, 2012 at 15:45

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.