当前位置:编程学习 > VB >>

VC调用VBS


void CCALLVBSDlg::OnButton1()
{
  // TODO: Add your control notification handler code here
  SHELLEXECUTEINFO shei;
  shei.cbSize = sizeof(shei);
  shei.fMask = SEE_MASK_INVOKEIDLIST;
  shei.lpFile = _T("computer name.vbs");
  shei.lpVerb = _T("open");
  ShellExecute(NULL,shei.lpVerb, shei.lpFile, _T(""), _T(""), SW_SHOW);
}
补充:软件开发 , Vc ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,