|
VBS Anonymous [11 posts] |
9 year
|
my following vbs script work fine in windows.
Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run("""D:\LSY201.exe""")
Set objShell = Nothing
but roboreal gives following error
error (2) : object required : `wscript`
|
|
|
Carl from Your Country [1447 posts] |
9 year
|
WScript isn't exactly VBScript. Try
Dim objShell
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute("D:\LSY201.exe")
Set objShell = Nothing
|
|
|
Anonymous [11 posts] |
9 year
|
Thanks a lot. I am begining to unaderstand.
|
|