473,811 Members | 2,767 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

List of actions for a file extention

Hi,

How can I list the available actions (and the command line for each action)
for a specific file extension? I am using C# and .NET 1.1

I need that for printing .PDF files (*.PDF files print action), but I would
like to have a general solution for other file extensions and actions.

A link to online resources or source code helps.

Any help would be appreciated,

Alan
Nov 17 '05 #1
7 1202
Hi Alan,

As far as I know, the the .NET framework didn't provide an interface for us
to do this. So wew need to implement it ourselves. The file association
information is saved in the registry. Here, I find a good example for how
to change the extension association. You can download the source code and
make some changes to it.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 17 '05 #2
Hi Kevin,

I think yhou missed the link. Could you include the link?

Thank you

"Kevin Yu [MSFT]" <v-****@online.mic rosoft.com> wrote in message
news:Ss******** ******@TK2MSFTN GXA01.phx.gbl.. .
Hi Alan,

As far as I know, the the .NET framework didn't provide an interface for
us
to do this. So wew need to implement it ourselves. The file association
information is saved in the registry. Here, I find a good example for how
to change the extension association. You can download the source code and
make some changes to it.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 17 '05 #3
Sorry, Alan, I forgot to include the link. Here is it:

http://www.mentalis.org/soft/class.qpx?id=5

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 17 '05 #4
Thank you!
"Kevin Yu [MSFT]" <v-****@online.mic rosoft.com> wrote in message
news:sH******** ******@TK2MSFTN GXA01.phx.gbl.. .
Sorry, Alan, I forgot to include the link. Here is it:

http://www.mentalis.org/soft/class.qpx?id=5

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 17 '05 #5
You're welcome.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 17 '05 #6
On Fri, 28 Oct 2005 03:00:37 GMT, v-****@online.mic rosoft.com (Kevin
Yu [MSFT]) wrote:
http://www.mentalis.org/soft/class.qpx?id=5

Kevin Yu


Looks very useful. However, I'm not able to open the .chm file.
Anyone else? Is there an update to the reader? (hh.exe)
Nov 17 '05 #7
I opened the CHM file, it is okay.

Did you try another computer?
"-DG-" <-D**@nospam.com> wrote in message
news:8i******** *************** *********@4ax.c om...
On Fri, 28 Oct 2005 03:00:37 GMT, v-****@online.mic rosoft.com (Kevin
Yu [MSFT]) wrote:
http://www.mentalis.org/soft/class.qpx?id=5

Kevin Yu


Looks very useful. However, I'm not able to open the .chm file.
Anyone else? Is there an update to the reader? (hh.exe)

Nov 17 '05 #8

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

Similar topics

15
3089
by: Georgy Pruss | last post by:
On Windows XP glob.glob doesn't work properly for files without extensions. E.g. C:\Temp contains 4 files: 2 with extensions, 2 without. C:\Temp>dir /b * aaaaa.aaa bbbbb.bbb ccccc ddddd C:\Temp>dir /b *.
2
1930
by: Mo | last post by:
Hi all, I hope that someone out there can help me with a problem I have been having. I have just finished creating a website and have added a header to most of the pages on my site. The header is included in each page with the <!-- #include file="myHeader.htm" -->, where myHeader.htm is the header file. The pages with the include directive all have the file extention ".htm". The problem is that with the set up above the pages are not...
3
1786
by: Tuvas | last post by:
I am currently writing an extention module that needs to recieve a list of characters that might vary in size from 0 to 8. This is written as a list of characters rather than a string because it's easier to manipulate. However, when I pass this list of characters into the extention module, it keeps giving errors. Is there a way to do one of the following? A. Change a list of chars to a single string or B. Read a list of chars in an...
6
1753
by: JD | last post by:
Hi all, Can anyone tell me is there a way to get a list of file types either supported on the server or clients computer and bind it to a drop down list in C# Thanks Jonathan Dixon
0
9727
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10133
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7669
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6889
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5554
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3017
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.