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!
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.
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).