0

How is it possible in C++ .NET to open a file on the computer.

Lets say that I am trying to open this file. Is this possible to do. In this case, Wordpad will open.
Thanks

"C:\\WordPadFile.rtf"
2
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by Jennifer84
0

I have tried out to open this like this but when the file is opened. The cmd.exe is also opened. Is this possible to prevent ?

system("C:\\exitfile.txt");
0

Yes it do seem to work great... thanks for that :)

This should do

System::Diagnostics::Process::Start("c:\\test.txt");
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.