On Fri, 8 Dec 2006 15:42:07 +0000 (GMT)
vineet kumar <[EMAIL PROTECTED]> wrote:
> hello friends
> anybody can tell me dat
>
> how can i open notepad through c
>
> plzzzz tell me any function or instruction.
> thnx
system( "notepad.exe" );
or
if( fork() == 0 ) {
exec( "notepad" ... );
}
man exec
NAME
execl, execlp, execle, execv, execvp - execute a file
SYNOPSIS
#include <unistd.h>
extern char **environ;
int execl(const char *path, const char *arg, ...);
int execlp(const char *file, const char *arg, ...);
int execle(const char *path, const char *arg,
..., char * const envp[]);
int execv(const char *path, char *const argv[]);
int execvp(const char *file, char *const argv[]);
--
Regards, Ed :: http://www.gnunix.net
just another java hacker
The Manhattan Project really did not create the atom bomb, but
instead put Mr. T’s pity in a bottle and then dropped it on Japan.