vc6操作批处理文件bat和cmd命令

来源:互联网 发布:气体检测软件系统 编辑:程序博客网 时间:2024/06/04 20:02

vc写代码执行cmd命令

ShellExecute(NULL,_T("open"), _T("cmd.exe"), _T("/c ipconfig") , NULL, SW_SHOWNORMAL); 

ShellExecute(NULL,_T("open"), _T("cmd.exe"), _T("/c net stop mysql") , NULL, SW_SHOWNORMAL); 

 

vc写代码执行bat文件

system("F:\\unity\\server\\mysql-5.1.6-win32\\bin\\install.bat");

ShellExecute函数不能执行bat文件

原创粉丝点击