Click here to Skip to main content
15,890,186 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help needed. Writing an apps launcher. Pin
Blake Miller22-Dec-05 11:59
Blake Miller22-Dec-05 11:59 
GeneralRe: Help needed. Writing an apps launcher. Pin
cgb14322-Dec-05 12:20
cgb14322-Dec-05 12:20 
GeneralRe: Help needed. Writing an apps launcher. Pin
Blake Miller23-Dec-05 5:13
Blake Miller23-Dec-05 5:13 
AnswerRe: Help needed. Writing an apps launcher. Pin
Michael Dunn22-Dec-05 21:23
sitebuilderMichael Dunn22-Dec-05 21:23 
QuestionSDK , VC++ and tty Pin
McSam22-Dec-05 8:59
McSam22-Dec-05 8:59 
AnswerRe: SDK , VC++ and tty Pin
vikas amin22-Dec-05 18:44
vikas amin22-Dec-05 18:44 
GeneralRe: SDK , VC++ and tty Pin
McSam22-Dec-05 21:39
McSam22-Dec-05 21:39 
QuestionShellExecute--setting the path of the (.exe) file Pin
Klerik8222-Dec-05 7:59
Klerik8222-Dec-05 7:59 
Hello-

In VC++, I am using shellexecute to run a batch file (which is composed of several .exe files and sets the path to a generated text file in the C:\ drive to display all the information from the .exe files [i.e. when psinfo.exe is run from the batch file, it writes to the (.txt), thus displaying all the information generated from psinfo.exe] and the batch file has several other executable calls that follow the same pattern of writing the information to the .txt file).

However, I am now trying to remove the batch file out of the equation. Basically I am trying to mimic the batch file to be executed using VC++ and I am confused about the following:

In the batch file I set the path with the following line--
set INFOPTH=C:\INFO.txt

-- and then throughout the batch file I direct all the information generated through the executables as follows --
psinfo.exe -d >>%INFOPTH%

-- so that I can easily view the information in txt format. So now what I want to do is implement this using VC++ in a UI that simply has an event handler that once clicked (i.e. Execute) will run just as the batch file does, of course without the dependency of the batch file...
I know this sounds some what simple, but I am very new the VC++ and would like some guidance as to how I would mimic the bath file's functionality, using VC++, especially how I would direct all my shellexecute function calls for the executables (i.e. psinfo.exe, etc.) to a path such as C:\INFO.txt.

To sum up... I need to know how to create the file (C:\INFO.txt) and direct all the information from the executables to that path using MFC and VC++ and not a simple .bat file.

Thank you for your help!

AnswerRe: ShellExecute--setting the path of the (.exe) file Pin
David Crow22-Dec-05 8:16
David Crow22-Dec-05 8:16 
Questionwhy Function Name in DLL so strange ? Pin
jinzhecheng22-Dec-05 6:25
jinzhecheng22-Dec-05 6:25 
AnswerRe: why Function Name in DLL so strange ? Pin
David Crow22-Dec-05 6:45
David Crow22-Dec-05 6:45 
AnswerRe: why Function Name in DLL so strange ? Pin
toxcct22-Dec-05 6:58
toxcct22-Dec-05 6:58 
GeneralRe: why Function Name in DLL so strange ? Pin
vikas amin22-Dec-05 20:39
vikas amin22-Dec-05 20:39 
GeneralRe: why Function Name in DLL so strange ? Pin
Eytukan22-Dec-05 23:05
Eytukan22-Dec-05 23:05 
AnswerRe: why Function Name in DLL so strange ? Pin
Chris Losinger22-Dec-05 7:07
professionalChris Losinger22-Dec-05 7:07 
AnswerRe: why Function Name in DLL so strange ? Pin
jinzhecheng22-Dec-05 8:16
jinzhecheng22-Dec-05 8:16 
AnswerRe: why Function Name in DLL so strange ? Pin
Bob Stanneveld22-Dec-05 20:15
Bob Stanneveld22-Dec-05 20:15 
QuestionAll of my .exe's crash >( why? Pin
eos4life22-Dec-05 6:12
eos4life22-Dec-05 6:12 
AnswerRe: All of my .exe's crash >( why? Pin
Nish Nishant22-Dec-05 8:33
sitebuilderNish Nishant22-Dec-05 8:33 
GeneralRe: All of my .exe's crash >( why? Pin
PJ Arends22-Dec-05 8:57
professionalPJ Arends22-Dec-05 8:57 
GeneralRe: All of my .exe's crash >( why? Pin
Nish Nishant22-Dec-05 9:23
sitebuilderNish Nishant22-Dec-05 9:23 
GeneralRe: All of my .exe's crash >( why? Pin
eos4life24-Dec-05 14:53
eos4life24-Dec-05 14:53 
AnswerRe: All of my .exe's crash >( why? Pin
ThatsAlok22-Dec-05 18:59
ThatsAlok22-Dec-05 18:59 
GeneralRe: All of my .exe's crash >( why? Pin
Office Lineman23-Dec-05 6:16
Office Lineman23-Dec-05 6:16 
GeneralRe: All of my .exe's crash >( why? Pin
eos4life24-Dec-05 14:48
eos4life24-Dec-05 14:48 

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.