Re: WScript Error by Anthony
Anthony
Sat Mar 08 06:31:39 CST 2008
"AbdulBaari" <abdal.baari@gmail.com> wrote in message
news:18a357b9-f5f7-4dd9-b2f0-d70786b3a2a9@d4g2000prg.googlegroups.com...
> Dear all,
>
> can anyone solve this problem. Im beginner in VBScript.Im getting an
> errorregarding "Wscript" means whenever I use WScript object, it shows
> Errors as " Object required: WScript" & "Variable undefind :
> Wscript" . Mostly I get "Object required: Wscript" erroe message
> whenver I declare
> WScript object.
>
> Can anyone please help me to solve this problem.
WScript is not an intrinsic object to VBScript. It is added to the VBScript
context created by the WScript.exe or the CScript.exe used to execute VBS
files.
ASP pages create a VBScript context but do not add the WScript object to the
context. Instead things such as Session, Response and Request are added to
the context.
What feature of WScript are you trying to use?
--
Anthony Jones - MVP ASP/ASP.NET