Solved

VB Script execution

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

863 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

25 Experts available now in Live!

Get 1:1 Help Now