I think, that I still am not seeing something.

In the Rbase macro I tried 
SET VAR vDPI = (INT((winudf('wscript.exe //x DPI2.vbs', ' '))))
RETURN

I tried the VBS script with the following declared and undeclared

 Option Explicit

 Dim  FSO
 Dim  F
 Dim  RbRetFile
 Dim  TS
 Dim  i
 Dim  s
 Dim  strComputer
 Dim  objWMIService
 Dim  colItems
 Dim  objItem
 Dim  Wscript
 SET  FSO = CreateObject("Scripting.FileSystemObject")

If it is declared I get debug error.

If it is not declared I get 0 returned for vDPI.
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MikeB
Posted At: Thursday, October 07, 2004 11:32 AM
Posted To: RB7-L
Conversation: [RBG7-L] - Re: CVAL for DPI
Subject: [RBG7-L] - Re: CVAL for DPI


>In the meantime, is there a good place for tutorial information on WMI 
>and WinUDF?

There is nothing magical about WMI.  It is just a framework of classes
implemented by Microsoft to allow IT depts a tool to query computers
about the Hardware/Software/Configuration on a machine, wether it is
across the room or across the world.  The classes have COM interfaces
that make it possible to access the whole kit and kaboodle from a
scripting language like VBScript or JScript.

There are a number of examples using VBScript with RBase Code here:

http://www.byerley.net/WinUdf.zip

Reply via email to