Anonymous  [11 posts]
3 years
my following vbs script work fine in windows.

Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
Set objShell = Nothing

but roboreal gives following error

error (2) : object required : `wscript`
Steven Gentner from United States  [1375 posts] 3 years
WScript isn't exactly VBScript. Try

Dim objShell
Set objShell = CreateObject("Shell.Application")
Set objShell = Nothing
Anonymous  [11 posts] 3 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