Execute an application

Hello,

I want to do a program that gets from the user a location of a file,
and the program executes the file (or if its a text file for example , the program opens it)

which class should I use?

thanks for the helpers.
humm
anyone?
That's OS specific.
Humm
OS?
I think OS means Open Source :S

what do you mean by "thats OS" ...?
*O*perating *S*ystem
Bah , right
stupid me.

so you say I should open this topic on Windows or Linux programming forum..?
He's asking on what OS do you want the program to run.

As far as i know in windows - you need to use system() or CreateProcess(). The latter is more preferable.
Last edited on
Topic archived. No new replies allowed.