It is possible to change file associations using the command prompt
assoc .c=Cfile
ftype Cfile="C:\emacs\bin\emacsclient" -n "%1"
Is there a way to change the icon of a file this way also. Or is the best way to do this by editing the registry.
I want to make a script or C program to do this so I don't want a icon association program.
Best Answer
You can to do this very easily with the right tools in the windows console, or write a BAT program to do this for you.
First, you need to find the association value.
Next, you need provide the icon file path
Finally, you can write a script to edit this.
That would look like:
than you can run the file with