Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:06 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: WScript
PostPosted: April 11th, 2006, 4:15 pm 
Offline

Joined: April 21st, 2005, 4:47 pm
Posts: 43
Location: Southampton, UK
I'm trying to implement the Windows Script Host Run method; the reason for this is to have a means of knowing that the requested program has finished, using bWaitOnReturn, before progressing to the next action. I've defined an object thus:

Code:
var WshShell=WScript.CreateObject("WScript.Shell")


This is followed later by
Code:
WshShell.run(<program>,1,True)
.

Running this interpretively gives an "undefined identifier" error against the WScript.CreateObject. Doubtless this is plain ignorance on my part, but has anyone done anything similar?

Many thanks, Linnet

_________________
A crack on the head / Is what you get for not asking
And a crack on the head / Is what you get for asking

Barbarism Begins At Home, The Smiths


Top
 Profile  
 
 Post subject:
PostPosted: April 11th, 2006, 9:52 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
I'm afraid OpusScript does not support the Windows scripting host - it is not Javascript. They do share a common base language (ecmascript) but JavaScript defines many of it's own extensions, as does OpusScript.

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 44 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group