Click here to Skip to main content
15,896,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: execute .bat file Pin
toxcct9-Sep-08 2:12
toxcct9-Sep-08 2:12 
AnswerRe: execute .bat file Pin
toxcct9-Sep-08 1:58
toxcct9-Sep-08 1:58 
GeneralRe: execute .bat file Pin
Madan Chauhan9-Sep-08 2:04
Madan Chauhan9-Sep-08 2:04 
GeneralRe: execute .bat file Pin
toxcct9-Sep-08 2:08
toxcct9-Sep-08 2:08 
GeneralRe: execute .bat file Pin
Madan Chauhan9-Sep-08 2:22
Madan Chauhan9-Sep-08 2:22 
GeneralRe: execute .bat file Pin
toxcct9-Sep-08 2:25
toxcct9-Sep-08 2:25 
GeneralRe: execute .bat file Pin
Madan Chauhan9-Sep-08 2:34
Madan Chauhan9-Sep-08 2:34 
GeneralRe: execute .bat file Pin
toxcct9-Sep-08 2:38
toxcct9-Sep-08 2:38 
Madan Chauhan wrote:
My problem is only that how can I execute a batch file in vc++?


exactly the way you do !

if you had ask me to launch a .bat from my exe, I would have written the same code for sure !

Madan Chauhan wrote:
I am not concerning only in Shellexecute(), if there is any other way, please guide me.


yes, there are, but i find them not as much elegant than ShellExecute(), and this cannot be the reason.
The reason is (as the error message said), that some file is being used by another process (another application. use ProcessExplorer (very lightweight) to find which is the culprit...


GeneralRe: execute .bat file Pin
vcprog24-Sep-08 20:38
vcprog24-Sep-08 20:38 
GeneralRe: execute .bat file Pin
Rajesh R Subramanian24-Sep-08 23:25
professionalRajesh R Subramanian24-Sep-08 23:25 
GeneralRe: execute .bat file Pin
toxcct24-Sep-08 23:38
toxcct24-Sep-08 23:38 
GeneralRe: execute .bat file Pin
vcprog25-Sep-08 0:39
vcprog25-Sep-08 0:39 
GeneralRe: execute .bat file Pin
Madan Chauhan9-Sep-08 2:39
Madan Chauhan9-Sep-08 2:39 
GeneralRe: execute .bat file Pin
vcprog24-Sep-08 18:50
vcprog24-Sep-08 18:50 
AnswerRe: execute .bat file Pin
Hamid_RT9-Sep-08 8:22
Hamid_RT9-Sep-08 8:22 
QuestionRegistry Key Problem Pin
Dhiraj kumar Saini9-Sep-08 1:28
Dhiraj kumar Saini9-Sep-08 1:28 
JokeRe: Registry Key Problem Pin
CPallini9-Sep-08 1:37
mveCPallini9-Sep-08 1:37 
GeneralRe: Registry Key Problem Pin
Dhiraj kumar Saini9-Sep-08 1:43
Dhiraj kumar Saini9-Sep-08 1:43 
GeneralRe: Registry Key Problem Pin
Rajesh R Subramanian9-Sep-08 2:33
professionalRajesh R Subramanian9-Sep-08 2:33 
AnswerRe: Registry Key Problem Pin
_AnsHUMAN_ 9-Sep-08 1:41
_AnsHUMAN_ 9-Sep-08 1:41 
GeneralRe: Registry Key Problem Pin
Dhiraj kumar Saini9-Sep-08 1:49
Dhiraj kumar Saini9-Sep-08 1:49 
AnswerRe: Registry Key Problem Pin
Rajesh R Subramanian9-Sep-08 2:53
professionalRajesh R Subramanian9-Sep-08 2:53 
GeneralRe: Registry Key Problem Pin
Dhiraj kumar Saini9-Sep-08 3:08
Dhiraj kumar Saini9-Sep-08 3:08 
QuestionAfter restoring the MFC Ribbon application I am unable to move the frame(reposisition). Pin
Ashok_kavi9-Sep-08 0:58
Ashok_kavi9-Sep-08 0:58 
QuestionWhat happens when we lock same critical section twice? Pin
SandeepNK9-Sep-08 0:24
SandeepNK9-Sep-08 0:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.