Via the command line, or script. I would like .java files to open in a program called textpad instead of notepad. Also is it possible to change the Icon in windows explorer to match the program it is associated to?
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


To do it properly (i.e, using the 'TextPad.java' ProgId) , here's the registry which you require (If you're using Textpad 5, of course):

Windows Registry Editor Version 5.00
@="Java Source File"
@="C:\\Program Files\\TextPad 5\\TextPad.exe,0"
@="\"C:\\Program Files\\TextPad 5\\TextPad.exe\" -s"
@="\"C:\\Program Files\\\\TextPad 5\\TextPad.exe\" -s \"%1\""
@="\"C:\\Program Files\\TextPad 5\\TextPad.exe\" -s -p \"%1\""
@="\"C:\\Program Files\\TextPad 5\\TextPad.exe\" -s -pt \"%1\" \"%2\" \"%3\" \"%4\""

You can either save it into a .reg file and import it like so:
REG IMPORT C:\TextpadJavaRegistry.REG (or do it using Regedit.exe - s etc)

Or you can write it via a VBScript. And there are TONS of VBScript registry-writing scripts out there....[;)]
Answered 01/23/2011 by: captain_planet
Black Belt

Please log in to comment
thanks man will give it a go. Question the regkey works perfect, but textpad resides in C:\Program Files(x86) it's on a windows 7 x64 machines where the problems resides. I guess I have to change all instances of C:\Program Files\ to C:\Program Files(x86) ?
Answered 01/23/2011 by: clivebuckwheat1
Purple Belt

Please log in to comment
Yeah.....or try using the %ProgramFiles(x86)% environment variable instead......
Answered 01/24/2011 by: captain_planet
Black Belt

Please log in to comment