Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: WScript error

HTVi
TV Discussion Newsgroups

WScript error
mirokuu 4/23/2007 3:34:04 PM
I am trying to learn to do windows scripting correctly.

Win I run the following code on the xp machine i get this error:
Script: C:\test.js
line: 1
Char: 5
Error: Expected ';'
Code: 800A03EC
Source: Microsoft Jscript Compolation Error


The code is the following:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("mmc.exe")


i have wsh 5.6 installed on this xp machine. I tried putting ; at the end of
each statement but its not working. i can get WScript.Echo "test"; to work
fine is there a reason why i am getting this error if so how do i go about
getting this to work. I am just trying to get this script to open up the mmc
console.
RE: WScript error
urkec 4/23/2007 5:00:02 PM
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("mmc.exe")


This is VBScript code, so you can save it with .vbs extension and then run it.

--
urkec


"mirokuu" wrote:

[Quoted Text]
> I am trying to learn to do windows scripting correctly.
>
> Win I run the following code on the xp machine i get this error:
> Script: C:\test.js
> line: 1
> Char: 5
> Error: Expected ';'
> Code: 800A03EC
> Source: Microsoft Jscript Compolation Error
>
>
> The code is the following:
> Set WshShell = WScript.CreateObject("WScript.Shell")
> WshShell.Run ("mmc.exe")
>
>
> i have wsh 5.6 installed on this xp machine. I tried putting ; at the end of
> each statement but its not working. i can get WScript.Echo "test"; to work
> fine is there a reason why i am getting this error if so how do i go about
> getting this to work. I am just trying to get this script to open up the mmc
> console.

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen