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.

bye bye

Re: WScript Error by Evertjan

Evertjan
Sat Mar 08 02:20:41 CST 2008

AbdulBaari wrote on 08 mrt 2008 in microsoft.public.inetserver.asp.general:
> 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.

Please show the ASP-vbs code line where the error points to.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

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