deepusrp
11th June 2007, 03:51
Hello all,
I want to invoke a browser from my project to display the documentation of my project.
what i am using is
system("firefox xyz.html")
This is giving me trouble. If the user doesn't have that browser, how can he view the documentation. So i tried this way
if ( system ("firefox xyz.html" ) )
{
if ( system ("konqueror xyz.html" ) )
{
.
.
this worked fine. But i didn't noticed on that time that we cannot access the project and the browser simultaneously. we can access my project only after closing the browser.
so what i thought was, i can run in the background.
if ( system ("firefox xyz.html &" ) )
{
if ( system ("konqueror xyz.html &" ) )
{
.
.
but this lead to another problem. If the first browser is not present, then its ok. If it is there, then the next browser also opened along with the first one.
I dont know how to tackle this....
please help
Deepu
I want to invoke a browser from my project to display the documentation of my project.
what i am using is
system("firefox xyz.html")
This is giving me trouble. If the user doesn't have that browser, how can he view the documentation. So i tried this way
if ( system ("firefox xyz.html" ) )
{
if ( system ("konqueror xyz.html" ) )
{
.
.
this worked fine. But i didn't noticed on that time that we cannot access the project and the browser simultaneously. we can access my project only after closing the browser.
so what i thought was, i can run in the background.
if ( system ("firefox xyz.html &" ) )
{
if ( system ("konqueror xyz.html &" ) )
{
.
.
but this lead to another problem. If the first browser is not present, then its ok. If it is there, then the next browser also opened along with the first one.
I dont know how to tackle this....
please help
Deepu