Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Ветеран


Сообщения: 27449
Благодарности: 8086

Профиль | Отправить PM | Цитировать


Glamorama, сам wmic.exe тут не при чём. Дело в методе «.Create» класса «Win32_Process»,
читать дальше »
который, я полагаю, в конечном итоге, реализуется функцией WinAPI «CreateProcess» — с соответствующими ограничениями:
Цитата Platform SDK:
Parameters
lpApplicationName

The string can specify the full path and file name of the module to execute or it can specify a partial name. In the case of a partial name, the function uses the current drive and current directory to complete the specification. The function will not use the search path. If the file name does not contain an extension, .exe is assumed. Therefore, if the file name extension is .com, this parameter must include the .com extension.

To run a batch file, you must start the command interpreter; set lpApplicationName to cmd.exe and set lpCommandLine to the name of the batch file.

Отправлено: 11:12, 07-10-2009 | #4