im using System.Management for access to some machine and run a command.
the connection work and also the execute command but my problem is when
i try to run a command file from another location that not recognize in the path variable enviroment
it's cannot been done.
my problems is how to make the command to open from my input location like for example:
my relative code is:
path = new System.Management.ManagementPath("\\\\" + MachineName + "\\root\\cimv2:Win32_Process");
scope = new System.Management.ManagementScope(path, options);
opt = new System.Management.ObjectGetOptions();
classInstance = new System.Management.ManagementClass(scope, path, opt);
inParams = classInstance.GetMethodParameters("Create");
inParams["CommandLine"] = Command;
thanks for the help :)