how to show chm file?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DBC User

    how to show chm file?

    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.

  • Alex Meleta

    #2
    Re: how to show chm file?

    Hi DBC,

    Let Windows select appropriate application for it:

    System.Diagnost ics.Process Proc = new System.Diagnost ics.Process();
    Proc.StartInfo. FileName = @"C:\public\Rub y On Rails\Addison.W esley.Rubyisms. in.Rails.Jul.20 06.chm";
    Proc.Start();

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

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



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


    Comment

    • DBC User

      #3
      Re: how to show chm file?

      On Jul 9, 9:56 am, DBC User <dbcu...@gmail. comwrote:
      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(p ath) and
      it worked the way I wanted it.
      Sorry,

      Comment

      Working...