Well, below is an example using a slightly different object, which most
people seem to use:
Set loShell = createObject("Shell.Application")
loShell.ShellExecute "regsvr32", " /s "" & loOCXFullPath & """, "", "runas"
hth,
Chip
_____
From: David [mailto:[email protected]]
Sent: Tuesday, May 04, 2010 6:15 AM
To: Scripting List WE
Subject: Opening an application from a script.
I need to have one of my scripts opening Notepad for me. Is there any
routine in WE scripting for doing this?
I know, from VB scripting outside WE, that I could define the WScript.Shell
object, and then run an instruction like
Shell.Run "Notepad.exe"
Is this possible from a WE script? And if so, which object.instruction
should I look at?
Thanks alot!
_____
I am using the Free version of SPAMfighter <http://www.spamfighter.com/len>
.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 1628 of my spam emails to date.
The Professional version does not have this message.