Re: launch a html file



Hi,

I would like to launch a html file in the default navegator.
If for example netscape is already running, you can use:

char syscommand[256];
char filename[] = "x.html";
strcpy( syscommand, " netscape -remote 'openFile (" );
strcat( syscommand, filename );            
strcat( syscommand, ")'" );
system( syscommand );

peterw
-- 
Dr. Peter Wurmsdobler

      CTM - Centre de Transfert des Microtechniques
39, av. de l'Observatoire, BP-1445, 25007 Besancon CEDEX 3
TELEPHONE: +33 3 81 47 70 20  TELECOPIE: +33 3 81 47 70 21
         E-mail: peter wurmsdobler ctm-france com

                  Ceterum censeo MIRCOSOFTem esse delendam.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]