For Programmers: Free Programming Magazines  


Home > Archive > ASP > March 2008 > WScript Error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author WScript Error
AbdulBaari

2008-03-07, 6:57 pm

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
Evertjan.

2008-03-08, 3:56 am

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)
Anthony Jones

2008-03-08, 7:56 am


"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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com