473,406 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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.

Jul 9 '07 #1
2 1926
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.ch m";
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>
Jul 9 '07 #2
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(path) and
it worked the way I wanted it.
Sorry,

Jul 9 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Paul | last post by:
I have a text file that I am trying to display on a web page. If I cat or more the file it formats and displays fine. When it comes up in the browser it seems to loose tabs and the format gets...
6
by: R. Stormo | last post by:
I have a problem showing output that is comming from a script. If I make a script running at commandline it do work and everything are showing. But when I try to execute it from within my proggy...
11
by: Dale | last post by:
How to recognize whether file has XML format or not? Here is the code segment: XmlDocument* pDomDocument = new XmlDocument(); try { pDomDocument->Load(strFileName ) ; } catch(Exception* e) {
0
by: Kele | last post by:
Does anybody know how you can have a link on a site to an Outlook Template File that once selected will automatically open using Outlook and not give the File Download Dialog. I do not want to...
2
by: gordon | last post by:
Hi, I am trying to create a reference to an external file to write to using stream writer and a value that is created in a for. Basically the value that a user will create will be the name...
4
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the...
0
by: MightyFeldar | last post by:
I've looked just about everywhere and pieced together as best as I can the code to update the tracking number in a CSV file for an order that has shipped out from our company so we can upload the...
2
by: kashifjawed | last post by:
I'm developing a c# asynchronous socket application for tranfering file or large data from client to server and server to client as well in chunks. Application sometimes transfer file from client...
0
by: Chocolade | last post by:
used breakpoint on the event but its never get there. This is the code of the connection testing of the internet while downloading the file in the contrustor: if (fdt.http_test()== true) ...
0
by: Arjun Sarankulu | last post by:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.