Jump to content
  • Advertisement
Sign in to follow this  
david_j_kemp

[web] Visual Basic & HTML

This topic is 5011 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I have written a VB script to detect a users bios settings and want the information to be displayed in tables using html when they open the page. The code is: ----------------------------------------------------------------- On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_BIOS",,48) For Each objItem in colItems Wscript.Echo "BuildNumber: " & objItem.BuildNumber Wscript.Echo "Caption: " & objItem.Caption Wscript.Echo "Description: " & objItem.Description Wscript.Echo "Manufacturer: " & objItem.Manufacturer Wscript.Echo "Name: " & objItem.Name Wscript.Echo "ReleaseDate: " & objItem.ReleaseDate Wscript.Echo "SMBIOSBIOSVersion: " & objItem.SMBIOSBIOSVersion Wscript.Echo "SMBIOSMajorVersion: " & objItem.SMBIOSMajorVersion Wscript.Echo "SMBIOSMinorVersion: " & objItem.SMBIOSMinorVersion Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSystem Wscript.Echo "Version: " & objItem.Version Next ----------------------------------------------------------------- At the moment this displays the information in a pop-up box and obviously doesnt use html. All I really need to know what to do is put this in with the html code and display it on the webpage instead of using the dialogue box. If someone could help I would really appreciate it. Thanks David

Share this post


Link to post
Share on other sites
Advertisement
If you put
<script language="VBScript">response.write "something"</script>

anywhere in your HTML page, wherever you put it, the text "something" will appear. You can use this to print out the variables.

Share this post


Link to post
Share on other sites
Replace your Wscript.Echo's with response.write's and build a table around it, then embed it in your webpage.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!