fudongmu
10-04-2008, 11:03 PM
I cant get the device array,how does dotnetclass "System.Management.ManagementObjectSearcher" work?
mytemp=my.get()
cant get an array value ,then i try to use this code
temp=#()
--temp.count=2
mindex=1
integer mindex
mytemp.copyto temp mindex
return error message "index out of range" , i need some help,i have no idea to try
this is the code
dotNet.loadAssembly "System.Management"
mydot=dotNetclass "System.Management.ManagementObjectSearcher"
showproperties mydot
--showmethods mydot
my=dotnetobject mydot
showProperties my showStaticOnly:false showMethods:true showAttributes:true
my.query.QueryString="SELECT * FROM Win32_DiskDrive"
mytemp=my.get()
showmethods mytemp showStaticOnly:false showMethods:true showAttributes:true
mytemp.count
temp=#()
--temp.count=2
mindex=1
integer mindex
mytemp.copyto temp mindex
mytemp=my.get()
cant get an array value ,then i try to use this code
temp=#()
--temp.count=2
mindex=1
integer mindex
mytemp.copyto temp mindex
return error message "index out of range" , i need some help,i have no idea to try
this is the code
dotNet.loadAssembly "System.Management"
mydot=dotNetclass "System.Management.ManagementObjectSearcher"
showproperties mydot
--showmethods mydot
my=dotnetobject mydot
showProperties my showStaticOnly:false showMethods:true showAttributes:true
my.query.QueryString="SELECT * FROM Win32_DiskDrive"
mytemp=my.get()
showmethods mytemp showStaticOnly:false showMethods:true showAttributes:true
mytemp.count
temp=#()
--temp.count=2
mindex=1
integer mindex
mytemp.copyto temp mindex
