Solved

VB Script execution

Posted on 2004-08-18
3
271 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
3 Comments
 
LVL 15

Accepted Solution

by:
Colosseo earned 500 total points
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
WSDL Soap Error 12 241
Menu Trouble 8 30
CSS HELP 6 73
Select distinct 25 60
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…
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
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:
The viewer will learn how to dynamically set the form action using jQuery.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now