473,387 Members | 1,535 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,387 software developers and data experts.

File Type assignment details

Hi,

I've done some file type assignment to a program I've made such that e.g.
when I double click on files of type .foo it will be openened in my program.

However, I'm still missing two things:

1) When I right click on the .foo file (in MS Windows) and selects
properties, my application is only shown with its icon under the 'opens
with:' label and not with the name of the program like it is with e.g.
Notepad. How can I from C# assign a 'description' to my exe. Or what regedit
key controls this?

2) How can I control the icon for the 'document' files of type foo. Rigth
now it looks like it some default paper sheet with a mini icon of the apps
icon in the middle. Nice default concept, but I would like to define my own
icon for the document.

Thanks,

Jesper.
Nov 17 '05 #1
1 1482
> However, I'm still missing two things:

1) When I right click on the .foo file (in MS Windows) and selects
properties, my application is only shown with its icon under the 'opens
with:' label and not with the name of the program like it is with e.g.
Notepad. How can I from C# assign a 'description' to my exe. Or what
regedit
key controls this?

2) How can I control the icon for the 'document' files of type foo. Rigth
now it looks like it some default paper sheet with a mini icon of the
apps
icon in the middle. Nice default concept, but I would like to define my
own
icon for the document.

Well I don't think there is an API for this; it used to be modifying the
registry.

What I would do is download RegMon from sysinternals:
http://www.sysinternals.com/utilities/regmon.html

RegMon allows you to log changes to the registry. Start RegMon, and use
Windows Explorer to make the changes you want through Tools -> Folder
Options -> File Types. Using this method you can determine which registry
settings to change.

Greetings,
Wessel
Nov 17 '05 #2

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

Similar topics

23
by: Paul Rubin | last post by:
OK, I want to scan a file for lines matching a certain regexp. I'd like to use an assignment expression, like for line in file: if (g := re.match(pat, line)): croggle(g.group(1)) Since...
21
by: Batista, Facundo | last post by:
Here I send it. Suggestions and all kinds of recomendations are more than welcomed. If it all goes ok, it'll be a PEP when I finish writing/modifying the code. Thank you. .. Facundo
3
by: Abhas | last post by:
> > Hi, this is Abhas, > > I had made a video library program in C++, but was facing a problem. > > After entering 12 movies, i cannot enter any more movies. > > Something gibberish comes instead....
21
by: ryanmhuc | last post by:
I know the subject might be confusing. I am no beginner with javascript but I haven't been able to figure out how to get the javascript file name from code inside the file. So you have an HTML...
29
by: Ark | last post by:
Hello NG, My Lint and my compiler disagree on whether this is valid code: typedef int test_t(char *); typedef int contest_t(const char *); extern contest_t somefunction; test_t *mypointer =...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
20
by: TimeHorse | last post by:
I would like to gauge interest in the following proposal: Problem: Assignment statements cannot be used as expressions. Performing a list of mutually exclusive checks that require data...
4
by: sara_patty | last post by:
fortran command for c command strcopy(infile, argv)
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.