定義
#include <Windows.h> #pragma comment( lib, "shell32.lib" )
実行
ShellExecute(NULL, L"open", L"cmd.exe", L"/c C:/work/bat/test.bat", L"", SW_HIDE);
定義
#include <Windows.h> #pragma comment( lib, "shell32.lib" )
実行
ShellExecute(NULL, L"open", L"cmd.exe", L"/c C:/work/bat/test.bat", L"", SW_HIDE);