Solved

VB Script execution

Posted on 2004-08-18
3
321 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

615 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