Executing 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/code file for example , the program opens it)

which class should I use?

thanks for the helpers.
There is no specific class (that I know of, I'm not familiar with MFC and the like). But to 'execute a file' you can use the Win32 API function ShellExecute() http://msdn.microsoft.com/en-us/library/bb762153.aspx (or ShellExecuteEx() ).

Hope this helps.
It worked.
thanks a lot
Topic archived. No new replies allowed.