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!

"Shell" to open a .txt 1

Status
Not open for further replies.

FORAND

Programmer
May 26, 2003
64
CA

Hi

I've created a report, and i'd like my application to "shell", and open the report (REPORT.TXT) with the associated extention application (notepad??).
How can i do that???

 
ShellExecute

/Per
Nerdy signatures are as lame as the inconsistent stardates of STTNG.
 
More info please..
How does it works?
 
It works fine ;-)

Usage:
ShellExecute(NULL, "open", theFileToOpen , NULL, NULL, SW_SHOWNORMAL);


Search MSDN for info on it, it is well explained there.




/Per
Nerdy signatures are as lame as the inconsistent stardates of STTNG.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top