本文介绍了ShellExecute()不执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在从C ++代码运行批处理文件.当我从系统运行它时.它运行.当我使用ShellExecute()时,它不会!我究竟做错了什么?谢谢.
I''m running a batch file from C++ code. When I run it from system. It runs. When I use ShellExecute() it doesn''t! What am I doing wrong? Thank you.
system("C:\\Batch\\666.bat"); Works
HINSTANCE hInst = ShellExecute(0,"open","c:\\batch\\666.bat","",0,0); No Work
推荐答案
HINSTANCE hInst = ShellExecute(0,"open","c:\\batch\\666.bat","",0,SW_SHOW );
这篇关于ShellExecute()不执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!