Regarding my previous problem that is now fixed, I got another problem with the //code here part :/
foreach (ManagementObject obj in ObjSearcher.Get())
{
ManagementBaseObject inputArgs = obj.GetMethodParameters("CopyEx");
inputArgs["FileName"] = "\\c:\\1stuff";
inputArgs["Recursive"] = true;
ManagementBaseObject outParams = obj.InvokeMethod("CopyEx", inputArgs, null);
uint ret = (uint)(outParams.Properties["ReturnValue"].Value);
}
I keep getting a returnvalue of 9, which is "Invalid Name". I have no idea what got an invalid name nor how to fix it. Both folder exist.