how to show chm file?

D

DBC User

I have to write a program, all it has to do is read in the name of the
chm file passed to it and show the chm file.

I wrote a batch file called test.bat and which will accept the chm
file name and it shows the chm file. It works ok, but the dos box is
still open and I don't want the dos window to show up.

Any ideas?

Thanks.
 
A

Alex Meleta

Hi DBC,

Let Windows select appropriate application for it:

System.Diagnostics.Process Proc = new System.Diagnostics.Process();
Proc.StartInfo.FileName = @"C:\public\Ruby On Rails\Addison.Wesley.Rubyisms.in.Rails.Jul.2006.chm";
Proc.Start();

PS. You can use this approach for any associated files.

Regards, Alex Meleta
[TechBlog] http://devkids.blogspot.com



DU> I have to write a program, all it has to do is read in the name of
DU> the chm file passed to it and show the chm file.
DU>
DU> I wrote a batch file called test.bat and which will accept the chm
DU> file name and it shows the chm file. It works ok, but the dos box is
DU> still open and I don't want the dos window to show up.
DU>
DU> Any ideas?
DU>
DU> Thanks.
DU>
 
D

DBC User

I have to write a program, all it has to do is read in the name of the
chm file passed to it and show the chm file.

I wrote a batch file called test.bat and which will accept the chm
file name and it shows the chm file. It works ok, but the dos box is
still open and I don't want the dos window to show up.

Any ideas?

Thanks.

It was a bad question sorry. I changed it to Process.Start(path) and
it worked the way I wanted it.
Sorry,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top