G
Guest
Hi all,
sorry for my bad Englisch.How I create new instance ? I try :
ManagementPath pt = new ManagementPath();
pt.NamespacePath = "root\\cimv2";
pt.ClassName = "Win32_Process";
ManagementClass mc = new ManagementClass(pt);
ManagementObject mo = mc.CreateInstance();
mo["CommandLine"]="c:\\windows\\system32\\notepad.exe";
mo.Put();
but this not work ...
sorry for my bad Englisch.How I create new instance ? I try :
ManagementPath pt = new ManagementPath();
pt.NamespacePath = "root\\cimv2";
pt.ClassName = "Win32_Process";
ManagementClass mc = new ManagementClass(pt);
ManagementObject mo = mc.CreateInstance();
mo["CommandLine"]="c:\\windows\\system32\\notepad.exe";
mo.Put();
but this not work ...