running exe and copying a file
I want to run an exe file in my program.For example i want to run setup.exe under the "Program Files".
And i want to copy a file under the C:\ to "Program Files"
Can anybody help me about these two subjects. And please give me a full code.
For example system(c:\Program Files) like this.
Thanks
Re: running exe and copying a file
Quote:
Originally Posted by goddamn
I want to run an exe file in my program.For example i want to run setup.exe under the "Program Files".
And i want to copy a file under the C:\ to "Program Files"
well.. making intallable programs is a whole other art that i know nothing about.. but to run an exe file, look into ShellExecute(..) and/or system(..).
Quote:
Originally Posted by goddamn
And i want to copy a file under the C:\ to "Program Files"
Look into CopyFile, CopyFileEx on msdn.