ed <[EMAIL PROTECTED]> wrote: On Sat, 13 Jan 2007 04:28:01 -0800 (PST)
I AM HERE wrote:
> in c++ if i won to execute a file (let say it is short mucis clip
> located in C drive) then wt path should i follow, is there any
> restriction that i should use windows compatible compiler also plz
> tell me wh complier will do this job. thanku 4 ur consideration
It is not clear to me how the OP wishes to play the music file.
Ed's solution (which is right) will work for executables only. To play
some music file, some commandline music player would be required. Similarly
for other (non-executable) files.
plz dnt spk in syllables. plz read
How To Ask Questions The Smart Way
http://catb.org/~esr/faqs/smart-questions.html
Nice point
int p;
p = fork();
if( p == 0 ) {
/**
* child
*/
execl( program_name, NULL );
}
or
system( program_name );
one blocks, the other doesn't.
--
Regards, Ed :: http://www.bsdwarez.net
proud c++ person
Regards,
Mohan S N
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and
always stay connected to friends.