473,326 Members | 2,108 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,326 software developers and data experts.

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 1186
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.microsoft.com> wrote in message
news:Ss**************@TK2MSFTNGXA01.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.microsoft.com> wrote in message
news:sH**************@TK2MSFTNGXA01.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.microsoft.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.com...
On Fri, 28 Oct 2005 03:00:37 GMT, v-****@online.microsoft.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
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 ...
2
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...
3
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...
6
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.