CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2003
    Posts
    84

    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

  2. #2
    Join Date
    Aug 2003
    Posts
    84

    Re: VBScript not working totally

    Quote 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

  3. #3
    Join Date
    Aug 2003
    Posts
    84

    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
  •  





Click Here to Expand Forum to Full Width

Featured