MFC 程序中调用 vbs 脚本文件

SHELLEXECUTEINFO shei;
shei.cbSize = sizeof(shei);
shei.fMask = SEE_MASK_INVOKEIDLIST;
shei.lpFile = _T("001.vbs");
shei.lpVerb = _T("open");
ShellExecute(NULL,shei.lpVerb, shei.lpFile, _T(""), _T(""), SW_SHOW);

system(_T("WScript.exe your.vbs"));

你可能感兴趣的:(MFC 程序中调用 vbs 脚本文件)