I started using :
W = Windows
M = Management
I = Instrumentation
inside my application with SCRIPTING-HOST.
I don't know, if this special kind of programming could be interesting
for FWH-users.
Remote control of computers, Hardware-Informations and more ....
Just a working test :
Windows-Serial-No.
-----------------------
- Code: Select all Expand view
FUNCTION GET_SERIAL()
IF FILE ( "VBFUNC.VBS" )
DELETE FILE "VBFUNC.VBS"
ENDIF
oText := TTxtFile():New( "VBFUNC.VBS" )
IF oText:Open()
oText:Add(' set collection = _')
oText:Add(' GetObject("winmgmts:").InstancesOf("Win32_OperatingSystem") ')
oText:Add(' for each os in collection ')
oText:Add(' MsgBox "Seriennummer: " & os.SerialNumber ')
oText:Add(' next ')
oText:Close()
ENDIF
Winexec('WSCRIPT.exe VBFUNC.VBS')
RETURN NIL
Regards
Uwe