Click here to Skip to main content
15,888,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionbatch file from mfc Pin
prathuraj5-Mar-07 5:24
prathuraj5-Mar-07 5:24 
AnswerRe: batch file from mfc Pin
Hamid_RT5-Mar-07 5:40
Hamid_RT5-Mar-07 5:40 
AnswerRe: batch file from mfc Pin
Newbie005-Mar-07 7:05
Newbie005-Mar-07 7:05 
AnswerRe: batch file from mfc Pin
Stephen Hewitt6-Mar-07 0:22
Stephen Hewitt6-Mar-07 0:22 
QuestionDOS from mfc Pin
prathuraj5-Mar-07 5:12
prathuraj5-Mar-07 5:12 
AnswerRe: DOS from mfc Pin
Joan M5-Mar-07 5:16
professionalJoan M5-Mar-07 5:16 
AnswerRe: DOS from mfc Pin
James R. Twine5-Mar-07 5:22
James R. Twine5-Mar-07 5:22 
AnswerRe: DOS from mfc Pin
Stephen Hewitt5-Mar-07 11:39
Stephen Hewitt5-Mar-07 11:39 
Perhaps this will help:
// CommandLine.cpp : Defines the entry point for the console application.
//
 
#include "StdAfx.h"
 
#include <process.h>
 
int main()
{
	system("ipconfig");
 
	return 0;
}


To output result to a file use this line instead:
system("ipconfig > C:\\Log.txt");


Steve

GeneralRe: DOS from mfc -- help me Pin
prathuraj5-Mar-07 16:30
prathuraj5-Mar-07 16:30 
GeneralRe: DOS from mfc -- help me Pin
Stephen Hewitt5-Mar-07 16:35
Stephen Hewitt5-Mar-07 16:35 
GeneralRe: DOS from mfc -- help me Pin
prathuraj5-Mar-07 16:50
prathuraj5-Mar-07 16:50 
GeneralRe: DOS from mfc -- help me Pin
Stephen Hewitt5-Mar-07 16:55
Stephen Hewitt5-Mar-07 16:55 
GeneralRe: DOS from mfc -- anyone help me please i need it now Pin
prathuraj5-Mar-07 17:13
prathuraj5-Mar-07 17:13 
GeneralRe: DOS from mfc -- anyone help me please i need it now Pin
Stephen Hewitt5-Mar-07 19:55
Stephen Hewitt5-Mar-07 19:55 
GeneralRe: DOS from mfc -- anyone help me please i need it now Pin
Stephen Hewitt5-Mar-07 20:09
Stephen Hewitt5-Mar-07 20:09 
Questionnetsh vc++ Pin
prathuraj5-Mar-07 3:48
prathuraj5-Mar-07 3:48 
AnswerRe: netsh vc++ Pin
prasad_som5-Mar-07 4:23
prasad_som5-Mar-07 4:23 
GeneralRe: netsh vc++ [modified] -- help me very urgent Pin
prathuraj5-Mar-07 4:36
prathuraj5-Mar-07 4:36 
AnswerRe: netsh vc++ Pin
Michael Dunn5-Mar-07 12:19
sitebuilderMichael Dunn5-Mar-07 12:19 
QuestionBluetooth stack Pin
TVS Deepak5-Mar-07 3:47
TVS Deepak5-Mar-07 3:47 
QuestionCPropertySheet with vertical pages Pin
demask5-Mar-07 3:12
demask5-Mar-07 3:12 
QuestionCopy constructor Example Pin
sawerr5-Mar-07 2:51
sawerr5-Mar-07 2:51 
AnswerRe: Copy constructor Example Pin
Cedric Moonen5-Mar-07 3:07
Cedric Moonen5-Mar-07 3:07 
GeneralRe: Copy constructor Example Pin
sawerr5-Mar-07 3:16
sawerr5-Mar-07 3:16 
AnswerRe: Copy constructor Example Pin
bpenz5-Mar-07 3:17
bpenz5-Mar-07 3:17 

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.