Solved

VB Script execution

Posted on 2004-08-18
3
314 Views
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"
</script>
</job>
to switch between tasks.
ANd I get the error:
Line:1
Char:1
Error: Expected statement
Code: 800A0400
Source: Microsoft VB Script compilation error
How do I fix this?
Thankyou.
Neeshs
0
Comment
Question by:neeshsonu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Accepted Solution

by:
Colosseo earned 500 total points
ID: 11836689
Hi

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

set WshShell = WScript.CreateObject"WScript.Shell"

to

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

HTH Regards

Scott
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iOS retina Display, HTML Email Signature 5 550
Clean URL from GET variables 2 126
migrating to phpbb forum from vBulletin 4.2 3 97
Unexpected End of File 11 87
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

751 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