I am planning to use WMI to start a process on a remote machine(say batch process). But the process was designed to start with Command Line Argument (say Batch_Type_Code). I couldn't find any sample that uses command line arguments.
According to the documentation for Win32_Process.Create
, the command line argument includes both the path to the executable and the arguments:
Create("\"%SYSTEMROOT%\\system32\\cmd.exe\" /K \"echo multiple spaces here\"", null, null, null);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With