vc调用cmd隐藏窗体代码

CString strCmd = _T("/c D:\\ZBar\\bin\\zbarimg.exe D:\\ocrAndQRCodeTest\\1_2.bmp>D:\\ocrAndQRCodeTest\\1_2.txt");  //   /c后面接命令
ShellExecute(NULL, _T("open"), _T("cmd.exe"), strCmd, NULL, SW_HIDE);//SW_HIDE隐藏cmd窗口

你可能感兴趣的:(vc调用cmd隐藏窗体代码)