VB Script execution

Posted on 2004-08-18
Last Modified: 2010-05-18
I ran the script:
<job id="vbs">
<script language="VBScript">
set WshShell = WScript.CreateObject"WScript.Shell"
WshShell.Run "Call Sheet"
WshShell.AppActivate "Call Sheet"
to switch between tasks.
ANd I get the error:
Error: Expected statement
Code: 800A0400
Source: Microsoft VB Script compilation error
How do I fix this?
Question by:neeshsonu
LVL 15

Accepted Solution

Colosseo earned 500 total points
ID: 11836689

To fix the error you are getting you will need to change the code

set WshShell = WScript.CreateObject"WScript.Shell"


set WshShell = WScript.CreateObject("WScript.Shell")

HTH Regards


Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Menu Trouble 8 41
Contact Forms for Website 6 82
 shows up in Outlook, not OWA or on phone 3 68
Problem to Popup 2 81
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System ( introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question