Home > HTML, JavaScript And CSS Help > Only error messages for me... Please help!

Only error messages for me... Please help!



<i><b>Originally posted by : Helpless Mike (michael-f@rocketmail.com)</b></i><br /><br />I try to open my asp file p3.asp from Netscape 4.61 and Explorer 4.7 which includes the following code, but I only receive an error message:<br /><br /><%@ Language = VBScript %> <br /><% Option Explicit %> <br /><HTML> <br /><body> <br /><FONT SIZE="4" FACE="ARIAL, HELVETICA"> <br /><% <br />Set WshShell = WScript.CreateObject("WScript.Shell")<br />Return = WshShell.Run("notepad " & WScript.ScriptFullName, 1, TRUE)<br />%> <br /></body> <br /><HTML> <br /><br />The error message:<br /><br />Microsoft VBScript runtime error '800a01f4' <br />Variable is undefined: 'WScript' <br />/p3.asp, line 7 <br /><br />Please reply if you think you know what's the problem! (I'm running Personal Web Server 4)<br />/Thanks Michael

    
Guest


<i><b>Originally posted by : kljklj (lkjlk@kljjlk.com)</b></i><br />You have option explicit on so you have to declare<br />the WScript variable.<br /><br />------------<br />Helpless Mike at 7/4/2001 1:12:06 AM<br /><br /><br />I try to open my asp file p3.asp from Netscape 4.61 and Explorer 4.7 which includes the following code, but I only receive an error message:<br /><br /><%@ Language = VBScript %> <br /><% Option Explicit %> <br /><HTML> <br /><body> <br /><FONT SIZE="4" FACE="ARIAL, HELVETICA"> <br /><% <br />Set WshShell = WScript.CreateObject("WScript.Shell")<br />Return = WshShell.Run("notepad " & WScript.ScriptFullName, 1, TRUE)<br />%> <br /></body> <br /><HTML> <br /><br />The error message:<br /><br />Microsoft VBScript runtime error '800a01f4' <br />Variable is undefined: 'WScript' <br />/p3.asp, line 7 <br /><br />Please reply if you think you know what's the problem! (I'm running Personal Web Server 4)<br />/Thanks Michael

Was this answer helpful ? Yes No   
Guest


<i><b>Originally posted by : eddie (eddie@eddie.com)</b></i><br />hi in your code you have<br /><% Option Explicit %> <br />with this code you have to declare all var's<br />ie<br /><br />dim wshshell, return<br /><br />------------<br />kljklj at 7/29/2001 12:49:30 PM<br /><br />You have option explicit on so you have to declare<br />the WScript variable.<br /><br />------------<br />Helpless Mike at 7/4/2001 1:12:06 AM<br /><br /><br />I try to open my asp file p3.asp from Netscape 4.61 and Explorer 4.7 which includes the following code, but I only receive an error message:<br /><br /><%@ Language = VBScript %> <br /><% Option Explicit %> <br /><HTML> <br /><body> <br /><FONT SIZE="4" FACE="ARIAL, HELVETICA"> <br /><% <br />Set WshShell = WScript.CreateObject("WScript.Shell")<br />Return = WshShell.Run("notepad " & WScript.ScriptFullName, 1, TRUE)<br />%> <br /></body> <br /><HTML> <br /><br />The error message:<br /><br />Microsoft VBScript runtime error '800a01f4' <br />Variable is undefined: 'WScript' <br />/p3.asp, line 7 <br /><br />Please reply if you think you know what's the problem! (I'm running Personal Web Server 4)<br />/Thanks Michael

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved