473,773 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

register a file extension with File Explorer

Ven
does anyone know where the docs are (or sample code) to
register an extension so that FileExplorer launches your
application when the user double clicks your file? i
havent seen this in the dotnetframework itself..

thanks in advance!

Nov 15 '05 #1
2 5013
This is not a .NET Framework feature, but it's actually something built into
the OS (registry). You can do this by creating a setup project in Visual
Studio for your application. If you install your app. with this setup
package, the file type mapping will be done. You should use the file type
editor in the setup project designer.

Look here for more info:
http://www.devnewz.com/devnewz-3-200...tsinVSNET.html
File types editor is used to associate a default command action, File
description , icon and extension for your custom files. There are many
occasions we create new file-types with extensions like ".rmt" or ".cpg"
etc. With the arrival of Win2k3 the rules specify that all files should have
a default open command and an icon association.

--
Greetz,
Jan
_______________ _______________ ____
Read my weblog: http://weblogs.asp.net/jan
"Ven" <vn******@netsc ape.net> schreef in bericht
news:01******** *************** *****@phx.gbl.. .
does anyone know where the docs are (or sample code) to
register an extension so that FileExplorer launches your
application when the user double clicks your file? i
havent seen this in the dotnetframework itself..

thanks in advance!

Nov 15 '05 #2
Ven
Thanks for the help Jan
Ven
-----Original Message-----
This is not a .NET Framework feature, but it's actually something built intothe OS (registry). You can do this by creating a setup project in VisualStudio for your application. If you install your app. with this setuppackage, the file type mapping will be done. You should use the file typeeditor in the setup project designer.

Look here for more info:
http://www.devnewz.com/devnewz-3- 20031009Creatin gSetupandDeploy mentProjectsinV SNET.htmlFile types editor is used to associate a default command action, Filedescription , icon and extension for your custom files. There are manyoccasions we create new file-types with extensions like ".rmt" or ".cpg"etc. With the arrival of Win2k3 the rules specify that all files should havea default open command and an icon association.

--
Greetz,
Jan
______________ _______________ _____
Read my weblog: http://weblogs.asp.net/jan
"Ven" <vn******@netsc ape.net> schreef in bericht
news:01******* *************** ******@phx.gbl. ..
does anyone know where the docs are (or sample code) to
register an extension so that FileExplorer launches your
application when the user double clicks your file? i
havent seen this in the dotnetframework itself..

thanks in advance!

.

Nov 15 '05 #3

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

Similar topics

2
2320
by: Roberto | last post by:
1) I have the following html code on the server: <HTML> .... ..... <BODY> <A HREF = http://MyServer/MyDoc.doc> Click here to see the document</A> When I click on the link How Internet Explorer understand that it's a Word Document and It's necessary open it with Microsoft Word ? Is The extension
1
3863
by: john | last post by:
I have an exe console app that i wrote, which works on custom data files. I'd like to give these data files a custom extension and somehow register that file extension with my exe, so all i have to do is double click the data file and my exe will launch. How do you register an exe with a file extension Once this is done, and you double click the file with the file extension, how does the exe know which file was clicked? is the path...
9
1954
by: Brian Henry | last post by:
How do you go about getting the "type" of a file from explorer? Say if I want to know what the type for the extension .DOC was, which is "Micrsoft Word Document" in explorer, how would I do this? I just want to get the name of the extension.. I do not have the physical file to reference for this, I just want to make a listing similar to that of the one in explorer's folder options under the file types tab. Thanks!
3
3169
by: Shapper | last post by:
Hello, I created a script to upload a file. To determine the file type I am using userPostedFile.ContentType. For example, for a png image I get "image/png". My questions are: 1. Where can I find a list of all the types which can be returned? For example, if it is a Word document will it return "document/doc".
5
3803
by: mike | last post by:
Hi, I have been playing with VB.NET/C# for getting some general properties of a fileinfo object. However, FileInfo object does not seem to expose some of the basic properties like TYPE that used to be available in "FileSystemObject" of ScriptingLibrary. For example the "TYPE" property should return "Text Document" or "Microsoft Office Document" or "Visual Studio Code File" and so on. similar to the properties displayed by Properties...
2
2177
by: Martin Carpella | last post by:
Hi! Can anybody give me a pointer if/how I could retrieve the Explorer context menu of a given file in C#? Thanks in advance, Martin
2
1232
by: Anu | last post by:
Hi, I have a shell extension in VS 6. I am porting the code to VS 2005. After porting, how can I register the dll from IDE? In VS 6, there is a option to register control from tools menu but I could not find the similar option in VS 2005. I am very new to this. So, please help me. Also, when I start the debuggin from VS 2005, the dll is locked by VS 2005. I have to close the IDE everytime to rebuild it. Can someone also provide some...
26
3612
by: Don Calloway | last post by:
I have created a <filename>.db1 (where <filenameis the name given to the database) Access database that is being used in multi-user mode. When the <filename>.db1 file is opened by a user, the corresponding locking file appears in the Windows Explorer view pane as well as expected. Occasionally, a "bare" db1 file (extension only without a filename) appears in the Windows Explorer window. Can anyone tell me what that file is and what it...
2
8102
by: dazzler | last post by:
I need to open PDF file with my python application, and I'm using os.startfile(filename.pdf) command, I would need open command act 100% like clicking the file in the windows explorer python documentation about os.startfile: "Start a file with its associated application. This acts like double-clicking the file in Windows Explorer, or giving the file name as an argument to the start command from the interactive command shell: the file is...
0
9454
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
10264
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10039
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8937
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7463
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
5355
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
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2852
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.