Reputation: 134
I have done some File associations for my project. it generates a number types of Files. however after deployment, when the files generated by the application are clicked they "open"/"run" the application, how do I disable that?
Bottom line I don't want it to "run" the application for me.
Thank you in advance I'm using C# Visual Studio 2010
Upvotes: 0
Views: 132
Reputation: 21419
There are two angles from where you could tackle this problem:
Upvotes: 0
Reputation: 15683
You can do that in command line by running assoc .<ext> = ""
command :
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\User>assoc .txt
.txt=txtfile
C:\Documents and Settings\User>assoc .txt = ""
.txt = ""
C:\Documents and Settings\User>
You could also create a batch file that clears out all the extensions you need.
Upvotes: 2