loading
 
VBS
Anonymous  [11 posts]
2 years
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  [1370 posts] 2 years
WScript isn't exactly VBScript. Try


Dim objShell
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute("D:\LSY201.exe")
Set objShell = Nothing
Anonymous  [11 posts] 2 years
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