Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Home » Tip Bank » C++
Language: C++
Expertise: Beginner
Jun 16, 1998



Application Security Testing: An Integral Part of DevOps

Running other apps from a C++ app

I recently started programming with Borland C++ Builder and the help files aren't much help at all. I would like to know what the code is for executing another EXE out of an C++ application. In English please.... the help files had some weird computer talk, but I didn't get it.

The easiest way is probably to use the system run-time library function.

It's simple enough. If you wanted to run an EXE called c:\text.exe, you could do it like this:

The argument to the system function can be anything you can type at the DOS prompt. For example, you can give an argument such as "copy c:\text.exe d:".
DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date