If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
how to change Target or command line for each file name extension
This is a Vista question, but since those groups are very quiet, I was
hoping 7 people would know the answer and would help me.. IIRC, XP, 98, and 3.1 had a utility screen, a tab on Folder Options, that let me define details about what happened when I click on a file with a particular filename extension. All Vista has on the Control Panel is Default Programs, and it lets me change the program but not change the command line associated with the extension. What would be the Target in a shortcut. Is there a screen or a hack that will let me change these things? (In a hardware emergency I had to move from XP and start using a Vista computer. Hoping to upgrade to 7 when another computer is ready.) |
Ads |
#2
|
|||
|
|||
how to change Target or command line for each file name extension
micky wrote on 10/02/2015 11:42 PM:
This is a Vista question, but since those groups are very quiet, I was hoping 7 people would know the answer and would help me.. IIRC, XP, 98, and 3.1 had a utility screen, a tab on Folder Options, that let me define details about what happened when I click on a file with a particular filename extension. All Vista has on the Control Panel is Default Programs, and it lets me change the program but not change the command line associated with the extension. What would be the Target in a shortcut. Is there a screen or a hack that will let me change these things? (In a hardware emergency I had to move from XP and start using a Vista computer. Hoping to upgrade to 7 when another computer is ready.) The Target path in a shortcut is found on the shortcut's Properties 'Shortcut' tab Vista through Win10 'Default Programs' allows one to choose the default program, use all or selectively the programs file extension defaults, or select a file type and use the default program and/or selectively change the default program. You also have the option when choosing a file (with a given extension) in Windows Explorer to use cursor right click/Open With (Note: not all file types will have the Open With option). -- ...winston msft mvp windows experience |
#3
|
|||
|
|||
how to change Target or command line for each file name extension
On Fri, 02 Oct 2015 23:42:11 -0400, micky wrote:
This is a Vista question, but since those groups are very quiet, I was hoping 7 people would know the answer and would help me.. IIRC, XP, 98, and 3.1 had a utility screen, a tab on Folder Options, that let me define details about what happened when I click on a file with a particular filename extension. All Vista has on the Control Panel is Default Programs, and it lets me change the program but not change the command line associated with the extension. What would be the Target in a shortcut. Is there a screen or a hack that will let me change these things? The Windows Registry Editor -- but you may have to learn more than you want to know about how this is organized in the Windows Registry. To take an example -- .pps 1) Run regedit.exe, the Windows Registry Editor 2) In the left pane of the Registry Editor, expand HKEY_CLASSES_ROOT\.pps and select the ".pps" 3) In the right pane, there are one or more rows with columns name, type and data. Look at the row with name = "(Default)", and note what this row has in the data column. Let us say the data column has "OpenOffice.Pps" 4) Now, In the left pane of the Registry Editor, expand HKEY_CLASSES_ROOT\OpenOffice.Pps\shell\open\comman d where the "OpenOffice.Pps" is the same as in #3 above. Select the "command". 5) In the right pane, look at the row with name = "(Default)". The 'data' column has the command line you are looking for. There is a bit more to it, but that should get you started. NOTE: If you have ever used this to change the program (right-click on file) Open with Choose default that sets up different registry settings which... (1) Take priority when launching from within Windows Explorer (2) Don't have the same options to set the command line -- Kind regards Ralph |
#5
|
|||
|
|||
how to change Target or command line for each file name extension
In alt.windows7.general, on Sat, 03 Oct 2015 22:12:47 +1300, Ralph Fox
wrote: On Fri, 02 Oct 2015 23:42:11 -0400, micky wrote: This is a Vista question, but since those groups are very quiet, I was hoping 7 people would know the answer and would help me.. IIRC, XP, 98, and 3.1 had a utility screen, a tab on Folder Options, that let me define details about what happened when I click on a file with a particular filename extension. All Vista has on the Control Panel is Default Programs, and it lets me change the program but not change the command line associated with the extension. What would be the Target in a shortcut. Is there a screen or a hack that will let me change these things? The Windows Registry Editor -- but you may have to learn more than you want to know about how this is organized in the Windows Registry. To take an example -- .pps 1) Run regedit.exe, the Windows Registry Editor 2) In the left pane of the Registry Editor, expand HKEY_CLASSES_ROOT\.pps and select the ".pps" 3) In the right pane, there are one or more rows with columns name, type and data. Look at the row with name = "(Default)", and note what this row has in the data column. Let us say the data column has "OpenOffice.Pps" 4) Now, In the left pane of the Registry Editor, expand HKEY_CLASSES_ROOT\OpenOffice.Pps\shell\open\comman d where the "OpenOffice.Pps" is the same as in #3 above. Select the "command". 5) In the right pane, look at the row with name = "(Default)". The 'data' column has the command line you are looking for. This is perfect. Thanks a lot. This will be very useful. I've used regedit before, a little. There is a bit more to it, but that should get you started. You wouldn't know how to make a program opened this way open *maximized*, would you? (I"ve installed Autosizer and MaxAll and neither seem so far to make every program open maximized.) Regedit for Vista has the advantage, I see, that it remembers what I was looking at the last time I closed it. But it has the big disadvantage that the icons for the "folder" that is open at the moment looks the same as all the others. In XP it looked like an open book or something when all the others looked like a closed whatever. Now I have to look at the bottom line to see which "folder"'s contents the right pane is displaying. NOTE: If you have ever used this to change the program (right-click on file) Open with Choose default that sets up different registry settings which... (1) Take priority when launching from within Windows Explorer (2) Don't have the same options to set the command line Interesting. I use Open With / Always quite a bit. At least I have in the past. Now I'll consider possible interactions. |
#6
|
|||
|
|||
how to change Target or command line for each file name extension
On Fri, 02 Oct 2015 23:42:11 -0400, micky wrote:
This is a Vista question, but since those groups are very quiet, I was hoping 7 people would know the answer and would help me.. IIRC, XP, 98, and 3.1 had a utility screen, a tab on Folder Options, that let me define details about what happened when I click on a file with a particular filename extension. All Vista has on the Control Panel is Default Programs, and it lets me change the program but not change the command line associated with the extension. What would be the Target in a shortcut. Is there a screen or a hack that will let me change these things? (In a hardware emergency I had to move from XP and start using a Vista computer. Hoping to upgrade to 7 when another computer is ready.) Somewhat end-user-friendly-but-powerful way, use Nirsoft FileTypesMan. http://www.nirsoft.net/utils/file_types_manager.html Otherwise, use the ASSOC and FTYPE command line programs included in Windows (since Win2K, AFAIK) as pointed by John K.Eason. Click "Assoc" at left nav pane for the ASSOC program guide. In short: - ASSOC manages the ID of the file types - where an ID (also a file type) is associated to one or more file extensions. e.g. ID=txtfile, and EXT=txt,text,lst,tex - FTYPE manages the actions and descriptions of the file types - where an action is the command line of the program to execute for the current file being acted on including the action name (e.g. Open, Print, Play). The description is the description of the file type (duh; e.g.: Text file, JPEG image, ThatApp document). |
#7
|
|||
|
|||
how to change Target or command line for each file name extension
JJ wrote on 10/4/2015 6:10 AM:
On Fri, 02 Oct 2015 23:42:11 -0400, micky wrote: This is a Vista question, but since those groups are very quiet, I was hoping 7 people would know the answer and would help me.. IIRC, XP, 98, and 3.1 had a utility screen, a tab on Folder Options, that let me define details about what happened when I click on a file with a particular filename extension. All Vista has on the Control Panel is Default Programs, and it lets me change the program but not change the command line associated with the extension. What would be the Target in a shortcut. Is there a screen or a hack that will let me change these things? (In a hardware emergency I had to move from XP and start using a Vista computer. Hoping to upgrade to 7 when another computer is ready.) Somewhat end-user-friendly-but-powerful way, use Nirsoft FileTypesMan. http://www.nirsoft.net/utils/file_types_manager.html Otherwise, use the ASSOC and FTYPE command line programs included in Windows (since Win2K, AFAIK) as pointed by John K.Eason. Click "Assoc" at left nav pane for the ASSOC program guide. In short: - ASSOC manages the ID of the file types - where an ID (also a file type) is associated to one or more file extensions. e.g. ID=txtfile, and EXT=txt,text,lst,tex - FTYPE manages the actions and descriptions of the file types - where an action is the command line of the program to execute for the current file being acted on including the action name (e.g. Open, Print, Play). The description is the description of the file type (duh; e.g.: Text file, JPEG image, ThatApp document). I've used File Types Manager and found it doesn't work for all the things I want. ie. For PNG I like the default to be preview in the default windows photo viewer but right-click edit should open in photoshop. I found http://defaultprogramseditor.com/ Default Programs Editor to work out much better. NOTE: Both programs have the ability to jump to regedit to the point where the change is, and I find it great to export the change after testing. Now I have a folder of .reg files that fix everything in a few clicks. |
#8
|
|||
|
|||
how to change Target or command line for each file name extension
On Sun, 4 Oct 2015 09:50:56 -0400, Big Al wrote:
I've used File Types Manager and found it doesn't work for all the things I want. ie. For PNG I like the default to be preview in the default windows photo viewer but right-click edit should open in photoshop. I found http://defaultprogramseditor.com/ Default Programs Editor to work out much better. NOTE: Both programs have the ability to jump to regedit to the point where the change is, and I find it great to export the change after testing. Now I have a folder of .reg files that fix everything in a few clicks. That's indeed better. In a way, IMO. The only missing function is the manager for the file type itself. e.g. add and remove the file type. Not just edit an existing one. Or change the file type description, and add new file extension(s) into a file type. But thanks. It'll be in my collection of tools, that's for sure. |
#9
|
|||
|
|||
how to change Target or command line for each file name extension
JJ wrote on 10/4/2015 12:24 PM:
On Sun, 4 Oct 2015 09:50:56 -0400, Big Al wrote: I've used File Types Manager and found it doesn't work for all the things I want. ie. For PNG I like the default to be preview in the default windows photo viewer but right-click edit should open in photoshop. I found http://defaultprogramseditor.com/ Default Programs Editor to work out much better. NOTE: Both programs have the ability to jump to regedit to the point where the change is, and I find it great to export the change after testing. Now I have a folder of .reg files that fix everything in a few clicks. That's indeed better. In a way, IMO. The only missing function is the manager for the file type itself. e.g. add and remove the file type. Not just edit an existing one. Or change the file type description, and add new file extension(s) into a file type. But thanks. It'll be in my collection of tools, that's for sure. I have both loaded too. You never know when one fills that little niche. |
#10
|
|||
|
|||
how to change Target or command line for each file name extension
In alt.windows7.general, on Sun, 4 Oct 2015 12:50:12 -0400, Big Al
wrote: JJ wrote on 10/4/2015 12:24 PM: On Sun, 4 Oct 2015 09:50:56 -0400, Big Al wrote: I've used File Types Manager and found it doesn't work for all the things I want. ie. For PNG I like the default to be preview in the default windows photo viewer but right-click edit should open in photoshop. I found http://defaultprogramseditor.com/ Default Programs Editor to work out much better. NOTE: Both programs have the ability to jump to regedit to the point where the change is, and I find it great to export the change after testing. Now I have a folder of .reg files that fix everything in a few clicks. That's indeed better. In a way, IMO. The only missing function is the manager for the file type itself. e.g. add and remove the file type. Not just edit an existing one. Or change the file type description, and add new file extension(s) into a file type. But thanks. It'll be in my collection of tools, that's for sure. I have both loaded too. You never know when one fills that little niche. Thanks, guys. I will look at both of them after dinner. They sound good. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|