Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


How to show VBScript as plain text on web server

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1264
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> How to show VBScript as plain text on web server
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 How to show VBScript as plain text on web server - 8/19/2004 4:03:15 AM   
  yong321

 

Posts: 4
Score: 0
Joined: 8/19/2004
From:
Status: offline
A file named test.txt on the web server has these three lines:

<script language="VBScript">
document.write "This should not appear as the only line in browser window."
</script>

and is accessed as http://mywebserver/test.txt. I want to see the complete code as plain text. But in IE the code is executed and I see "This should not ...". Is there a workaround short of changing to JavaScript or using a different browser? Thanks.

Yong Huang
 
 
Post #: 1
 
 Re: How to show VBScript as plain text on web server - 8/19/2004 10:43:47 PM   
  Matt

 

Posts: 30
Score: 0
Joined: 8/17/2004
From: United Kingdom
Status: offline
Use HTML and type:

&lt;script language=&quot;VBScript&quot;&gt;
document.write &quot;This should not appear as the only line
in browser window.&quot; &lt;/script&gt;

(in reply to yong321)
 
 
Post #: 2
 
 Re: How to show VBScript as plain text on web server - 8/20/2004 1:57:39 AM   
  yong321

 

Posts: 4
Score: 0
Joined: 8/19/2004
From:
Status: offline
quote:
Originally posted by Matt

Use HTML and type:
...



Thanks. I thought about that. After comparing several alternatives, I chose the one using the script's own filename extension and warn the user to save the file. It's actually a humble HTA script written in VBScript language (http://rootshell.be/~yong321/freeware/pstats.hta).

Yong Huang

(in reply to yong321)
 
 
Post #: 3
 
 Re: How to show VBScript as plain text on web server - 8/21/2004 6:38:01 AM   
  newNewbie

 

Posts: 1
Score: 0
Joined: 8/21/2004
From: Estonia
Status: offline
hi, there is a way useing script type "text/vbscript", that works copy this:

<script type="text/vbscript">
document.write "This text appears "
</script>

(in reply to yong321)
 
 
Post #: 4
 
 Re: How to show VBScript as plain text on web server - 8/23/2004 2:24:03 AM   
  yong321

 

Posts: 4
Score: 0
Joined: 8/19/2004
From:
Status: offline
quote:
Originally posted by newNewbie

hi, there is a way useing script type "text/vbscript", that works copy this:

<script type="text/vbscript">
document.write "This text appears "
</script>



Thanks for the advice. But it still executes the script. Try this URL: http://rootshell.be/~yong321/freeware/pstats.txt

Yong Huang

(in reply to yong321)
 
 
Post #: 5
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> How to show VBScript as plain text on web server Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts