In a console app, use the system() function. Under Windows, you can still use ShellExecute().