Click here to Skip to main content
15,885,203 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to open a .conf file in notepad using vc++?
I have used
system("notepad E:\new.conf");


But it just opens a notepad without any text from that file.
Posted

1 solution

I have found the answer..
ShellExecute(0,_T("open"), _T("notepad.exe"),_T("E:\\New\\new.conf"),0,SW_SHOW);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900