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.
根据Win32_Process.Create
的文档 ,命令行参数包括可执行文件的路径和参数:
Create("\"%SYSTEMROOT%\\system32\\cmd.exe\" /K \"echo multiple spaces here\"", null, null, null);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.