|
Description
This example shows how
to launch notepad from your application
. Note you can actually launch any
app as long as you know the path to
the executable file.
Code
/**************************************
launch notepad
***************************************/
#include <stdio.h>
#include <windows.h>
#include <conio.h>
int main(void)
{
printf("Explorer will launch.\n");
/*replace with the path to your explorer.exe*/
system("h:\\windows\\explorer.exe");
return 0;
}
Information
tested using Visual
C++ 6
|