Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launching a program to view a text file... 1

Status
Not open for further replies.

rdalton

Programmer
Dec 5, 2002
24
US
In the mainframe menubar I have a HOWTO option under the help menu, I want the function to open a text file using notepad or some other default txt viewer. How do I launch a program and open a file from within my application? thanks.
 
u can use ShellExecute or ShellExecuteEx for that -There are only 10 types of people in the world, those who understand binary and those who don't-

-pete
 
::ShellExecute( NULL, "open", "notepad", "c:\\files\\whatsup.txt", NULL, SW_NORMAL); -There are only 10 types of people in the world, those who understand binary and those who don't-

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top