-
March 31st, 2005, 07:05 PM
#1
VBScript not working totally
The MsgBox with "hello" works but not the GetObject call. If I make it a .vbs without tags, it works. Any ideas?
Code:
<html>
<head>
<meta name="vs_defaultClientScript" content="VBScript">
<title></title>
<script language="vbscript">
<!--
MsgBox("Hello")
Dim BIOSSet
Set BIOSSet = GetObject("winmgmts:").InstancesOf("Win32_Bios")
For each MEM in BIOSSet
rev = MEM.Versionver
Next
MsgBox(rev)
-->
</script>
</head>
<body ms_positioning="GridLayout">
</body>
</html>
____________
VC++ .NET MFC
-
April 1st, 2005, 08:24 PM
#2
Re: VBScript not working totally
Originally Posted by jkw2068
The MsgBox with "hello" works but not the GetObject call. If I make it a .vbs without tags, it works. Any ideas?
Code:
<html>
<head>
<meta name="vs_defaultClientScript" content="VBScript">
<title></title>
<script language="vbscript">
<!--
MsgBox("Hello")
Dim BIOSSet
Set BIOSSet = GetObject("winmgmts:").InstancesOf("Win32_Bios")
For each MEM in BIOSSet
rev = MEM.Versionver
Next
MsgBox(rev)
-->
</script>
</head>
<body ms_positioning="GridLayout">
</body>
</html>
TTT.
This is a client side script to be used in a Lab Test env. I'd go ASP if it was possible. Thanks for looking
____________
VC++ .NET MFC
-
April 4th, 2005, 02:09 PM
#3
Re: VBScript not working totally
Any body? C'mon. I'd even accept a flame if you'd gimme one.
____________
VC++ .NET MFC
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|