Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
Stephen Hewitt12-Dec-06 16:04
Stephen Hewitt12-Dec-06 16:04 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
ATC12-Dec-06 16:06
ATC12-Dec-06 16:06 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
Stephen Hewitt12-Dec-06 16:12
Stephen Hewitt12-Dec-06 16:12 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
ATC12-Dec-06 16:16
ATC12-Dec-06 16:16 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
Stephen Hewitt12-Dec-06 16:18
Stephen Hewitt12-Dec-06 16:18 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
Sam Hobbs12-Dec-06 15:20
Sam Hobbs12-Dec-06 15:20 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
ATC12-Dec-06 15:55
ATC12-Dec-06 15:55 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
Sam Hobbs12-Dec-06 16:29
Sam Hobbs12-Dec-06 16:29 
Please stop saying DOS!

First, did you search for previous answers? It is nearly certain that this question has been asked and answered many times before.

When I said command shell, I meant command-interpreter.

Look at the documentation of the system function. It is useful because it describes how the filename of the "command-interpreter file" is determined. For NT type versions of Windows, the command-interpreter file is Cmd.exe. For 95 versions of Windows, the command-interpreter file is Command.com. Those names might change for future version so it is better to get the filename from the environment.

You need to execute the command-interpreter and pass the options and command on the command line. Note that this will create a new window for the command; if that is not what you need, then I am sorry for misleading you.
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
Stephen Hewitt12-Dec-06 17:00
Stephen Hewitt12-Dec-06 17:00 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
Sam Hobbs12-Dec-06 19:26
Sam Hobbs12-Dec-06 19:26 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
Stephen Hewitt12-Dec-06 19:32
Stephen Hewitt12-Dec-06 19:32 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
Sam Hobbs12-Dec-06 20:29
Sam Hobbs12-Dec-06 20:29 
GeneralRe: Can VC++ launch MS Dos window then issues Dos commands? Pin
Stephen Hewitt13-Dec-06 10:05
Stephen Hewitt13-Dec-06 10:05 
QuestionMultiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs12-Dec-06 10:41
lctrncs12-Dec-06 10:41 
AnswerRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Mark Salsbery12-Dec-06 11:29
Mark Salsbery12-Dec-06 11:29 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs13-Dec-06 7:48
lctrncs13-Dec-06 7:48 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Mark Salsbery13-Dec-06 8:27
Mark Salsbery13-Dec-06 8:27 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs14-Dec-06 10:57
lctrncs14-Dec-06 10:57 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs14-Dec-06 11:00
lctrncs14-Dec-06 11:00 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Mark Salsbery14-Dec-06 11:34
Mark Salsbery14-Dec-06 11:34 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs14-Dec-06 13:06
lctrncs14-Dec-06 13:06 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Mark Salsbery14-Dec-06 13:36
Mark Salsbery14-Dec-06 13:36 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs14-Dec-06 14:18
lctrncs14-Dec-06 14:18 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
Mark Salsbery14-Dec-06 16:12
Mark Salsbery14-Dec-06 16:12 
GeneralRe: Multiple application instances-how prevent multiple file instances or file overwrite Pin
lctrncs15-Dec-06 8:05
lctrncs15-Dec-06 8:05 

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.