0

I have a problem with loading my VBscript in html. I tried to test a simple sample, but it doesn't work: My html:

<!DOCTYPE html>
<html>
<body>
<head>
<script src="login_VBS.vbs"> </script> 
</head>
</body>
</html>

login_VBS.vbs:

msgbox "this is a message"

I can not make it easier, but when I check the view source from IE, the vbs doesn't exist in my source. Any ideas?

2 Answers 2

1

Use valid HTML - like:

<!DOCTYPE html>
<html>
 <head>
  <script language="VBScript" type="text/vbscript" src="test00.vbs"></script>
 </head>
 <body>
 </body>
</html>

and one (or both) scripting language specification; of course the .vbs must exist (in the parent folder of the .html file, if you don't use a full/absolute path).

Sign up to request clarification or add additional context in comments.

Comments

0

Make sure you have gave correct filename with correct location, this should work

<script type="text/vbscript" src="VBScript_file_URL"></script>

Check this and also this, also make sure whether the file exists or not.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.