What's API to execute an arbitrary command-line command?
ShellExecuteEx seems only appropriate if you're using a verb, like open or edit.
thx
What's API to execute an arbitrary command-line command?
ShellExecuteEx seems only appropriate if you're using a verb, like open or edit.
thx
You can use ShellExecute with NULL for default or "open" verb :
HINSTANCE h = ShellExecute(NULL, NULL, L"cmd.exe", L"/c dir c: > c:\\temp\\test.txt", NULL, SW_HIDE);
3 people are following this question.