473,508 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WScript Error

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
Mar 8 '08 #1
2 3678
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)
Mar 8 '08 #2

"AbdulBaari" <ab*********@gmail.comwrote in message
news:18**********************************@d4g2000p rg.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
Mar 8 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
50525
by: Alex Ang | last post by:
I have written the following VBScript program. It is stored into a file "map_drive.vbs". It successfully mapped to a network drive \\server1\data. Dim WshNetwork Set WshNetwork =...
0
7066
by: Kyle | last post by:
To any who chose to provide an answer, or even any suggestions to this problem, I thank you greatly in advance. +200 pts. for any valid solutions. I am currently in the process of converting a...
6
15604
by: MacKenzie | last post by:
The statement in an asp page: dim objShell Set objShell = WScript.CreateObject("WScript.Shell") now gives this error: VB err= 424,Object required If I use...
1
3801
by: Mike John | last post by:
I am trying to send key to the browser to launch the send page command Systax: <script langauage = "Javascript"> function Sendmy() { var wshell = Server.CreateObject("WScript.Shell")...
2
19264
by: Mike John | last post by:
I am trying to use the shell object to send keys to the explorer browser to run the send page funcion. I am receiving the above error only when I put my html file in the web server...
0
4592
by: AirYT | last post by:
Done a bunch of searching on this topic and i have come up with nothing. I have a .vbs script that i wish to execute by calling an asp page. i am working on a W2K server with IIS5.0 & SP4. ...
2
10456
by: =?Utf-8?B?VG9kZA==?= | last post by:
Hello I'm using the following script to try and ping: <% Response.Buffer = true %> <% url = "www.espn.com" Set objWShell = CreateObject("WScript.Shell") Set objCmd = objWShell.Exec("ping " &...
2
10513
by: =?Utf-8?B?c3RldmV3YQ==?= | last post by:
Microsoft VBScript runtime error '800a0046' Permission denied ======================= Trying to find the solution is driving me crazy. Using IIS6 on Server2003 SBS Default website localhost...
3
3233
by: lavsaxena | last post by:
I need to use the Wscript object in my vb script. But when I am using it, its giving error that object required. I have tried Wscript.sleep(10) Do we need to declare the Wscript object first?...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7114
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.