Could someone write an example program that opens up firefox? I would really like to see the syntax to do that.

Thanks

Recommended Answers

All 8 Replies

Try, system ( "start firefox" ) ;

Alright thanks guys and what is the command to make the dos window hide?

"Hide the dos window" - is it possible? I don't know.
If you want to close the dos window right after opening Firefox then a simple return 0 following system() should work.

Others answers are wrong.
Never use System() on Win32 (creates another PAS)
Use Shell apis.

Others answers are wrong.
Never use System() on Win32 (creates another PAS)
Use Shell apis.

ShodoNinja never said it is a Win32 program

system ( "start firefox" ) ; doesnt work under linux

is there an alternative?

----------------------------------

never mind.. linux doesnt need start

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.