loading
 
VBS
Anonymous  [11 posts]
8 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`
Steven Gentner from United States  [1446 posts] 8 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] 8 year
Thanks a lot. I am begining to unaderstand.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index