English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Im using Microsft Visual C++ 2005 Express Edition and I would like to know how I can make one application copy a previously made .exe application into a folder (e.g. C:/Program Files/MSN Messenger/)
Can I do this and if so how, please give code or a direct link to a relevant page and not a whole website.

2006-12-28 04:12:48 · 1 answers · asked by sbraidley 3 in Computers & Internet Programming & Design

1 answers

look for "system" in the VC++ help:

#include

void main( void )
{
system( "cp c:\filename.txt c:\somewhere\filename.txt" );
}


this uses DOS style commands, in this case "cp" for copy etc...you will need to look up other DOS command prompt commands for other shell activity using system()

2006-12-28 11:43:15 · answer #1 · answered by Anonymous · 0 0

fedest.com, questions and answers