Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Unable to associate file with pinned icon

22 Sep 2012   #21
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

Here is what I understand so far.
1. OP post #3
I right-clicked on the icon but the icon on the task bar does not have a Properties selection.
2. OP post #11
I haven't given up on this but am reluctant to let it reset all of my IE9 options and then have to try to remember what they wereto get them back.
3. OP post 15
Pinning the file has the same result as pinning the shortcut to the program & file.
---------------------------------
1/ A icon with no properties selection is not normal to me.
2/ Concern about reseting IE9
3/ I don't understand (program & file)
---------------------------------
1/Any time Windows 7 operation is in question sfc /scannow might help and won't hurt.
2/Any time someone has questions about I.E.9 a good place to start is default and updated.
---------------------------------
As far as I can tell we still don't know what this icon is for and how it was made. Was a registry tweak used?
As far as I can tell it only happens to this icon.
This is all confusing to me but I will wait and watch for someone to guide this poor OP on his quest.


My System SpecsSystem Spec
.
22 Sep 2012   #22
rainman875

windows 7 home premium 64bit sp1 (ver 6.1.7601)
 
 

have you tried right clicking the exe to create a new shortcut to the file, then pin that to the taskbar?
My System SpecsSystem Spec
22 Sep 2012   #23
Slartybart

x64 (6.3.9600) Win8.1 Pro & soon dual boot x64 (6.1.7601) Win7_SP1 HomePrem
 
 

@Layback Bear,

I'll try to translate:
1/ A icon with no properties selection is not normal to me.
---> If you right click on a taskbar shortcut, the alternate menu does not present a properties pick

2/ Concern about resetting IE9
---> Some folks change settings in IE, as I do, and don't want to have to remember the way they like it or the way it's working in their environment. Your right, there aren't too many settings to remember that are worth changing in the first place. I do think it's a valid concern when the OP is only trying to find a method to create a taskbar shortcut that opens a specific file with one click.

3/ I don't understand (program & file)
---> You got me there, I think Jim meant taskbar..... but only Jim could tell us that

1/Any time Windows 7 operation is in question sfc /scannow might help and won't hurt.
---> I agree

2/Any time someone has questions about I.E.9 a good place to start is default and updated.
---> I disagree - resetting IE to default is the last ditch attempt to fix it. The caution in IE says it all for me
---> "You should only use this if your browser is in an unusable state"

<edit--> I do agree about keeping things up-to-date thru WU. I missed that before
---------------------------------
Of course, I might have incorrectly interpreted the original issue. Words get in the way of communicating too often.
At any rate, we'll need Jim to see if the method I provided in post# 16 solves the problem he was trying to solve.

We're both in wait mode.
My System SpecsSystem Spec
.

22 Sep 2012   #24
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

Slartybart thanks for your time and explanation. Yes we are both in the wait mode. I'm curious if their/there has been some registry changes concerning this icon.
My System SpecsSystem Spec
22 Sep 2012   #25
jimtalbert

Windows 7 Home Premium 64 bit
 
 

Slartybart, you are correct in stating what I want to do. However, the desktop icon that brings up the app and the file already has the full path to the file in it.
My System SpecsSystem Spec
22 Sep 2012   #26
Slartybart

x64 (6.3.9600) Win8.1 Pro & soon dual boot x64 (6.1.7601) Win7_SP1 HomePrem
 
 

<edit--> The application opens the file in the shortcut target because that application is associated with the filetype.
<edit--> Adding the application to the shortcut accomplishes the same thing, but it fools Windows enough so that you can pin it to the taskbar.

Right, that's why I said to create a shortcut to the file you want to open, then add the full path of the APPLICATION to the target field of the new shortcut.

<edit--> The target filed of the shortcut was filename
<edit--> - it becomes programname filename.
Quote   Quote: Originally Posted by jimtalbert View Post
Slartybart, you are correct in stating what I want to do. However, the desktop icon that brings up the app and the file already has the full path to the file in it.
the good news is that you have a shortcut with the full path in it - keep that around for reference.

I just finished writing and testing a tutorial for this - you can be the first to try it. A rough draft, sure.

Follow the steps in my next post and let me know if you were able to complete it. It would be a big help if you see something that isn't clear or doesn't work.
Thanks - you'll want method 1 - because you stated a need for an icon. Plus I think it's the easier course to follow.

You can PM (top of the thread in quick links) me with difficulties or corrections regarding the "tutorial". We'll keep problem solving here on your thread. But I think your issue will be resolved after you follow the tut.
My System SpecsSystem Spec
22 Sep 2012   #27
Slartybart

x64 (6.3.9600) Win8.1 Pro & soon dual boot x64 (6.1.7601) Win7_SP1 HomePrem
 
 
Taskbar shortcut - open one file

This is a very rough draft of
How to pin a single file to the taskbar

Method one
1. Create a shortcut to the file you want to open
- rename it to anything you prefer
-name it W74mTbLnk1

2. Modify the properties of the shortcut
- Right click on the new shortcut
- select properties from the menu
- add the application that will open the file to the target (before the file part of the target)
--> Note: The easiest way to provide the full path to the application is to find the shortcut on your Start Menu, Right Click the shortcut, select Properties. Select the entire string in the Target box (it should be highlighted when you opened the properties) and Ctrl-C to copy. You can paste the string you just copied into the Target box of shortcut you created for the Taskbar - make sure the program is before the file and that there is a space between the two parameters. It's safest to enclose both the program and the file each in quotes.
"Program" "File" - not "Program File"

- change the icon to suit your needs
--> there are a few dlls that supply standard Windows icons
---- you can enter a dll to browse the icons inside try browsing in %SystemRoot%\system32\SHELL32.dll, then select what you want on the taskbar
- click ok

For example:
- the file you want to open is %userprofile%\Documents\File2bOpened.txt
- the shortcut you created shows
--> target: "%userprofile%\Documents\File2bOpened.txt"
- Notepad is the application that will open the file
- add "%windir%\system32\notepad.exe" to the target in the shortcut
--> target: "%windir%\system32\notepad.exe" "%userprofile%\Documents\File2bOpened.txt"
- Make sure there is a space between the application and the file specifications.

3. Drag the shortcut to the taskbar and pin it.

Note: This method allows you to customize the icon
Warning: The link in this method does not follow the target file, so if you move the file, you have to create a new taskbar link.
That's it.



Method Two
1.Open Notepad or any other text editor

2.Create an empty file
- Filename: W74mTbLnk1
- Filetype: exe

- For example: W74mTbLnk1.exe
- depending on your text editor, you might have to change a drop down menu for Filetype to All files.
- Otherwise, you could end up with W74mTbLnk1.exe.txt
- you want a dummy executable because pinning only works with an executable, so this is a way to fool Windows.

3, Drag the dummy executable to the taskbar and pin it

4. Create a shortcut to the file you want to open
- Right click on the file
- select Create Shortcut

5. Rename the shortcut you just created to W74mTbLnk1
- Click on the filename of the shortcut
- Change it to the name you used in step 1 and hit enter - the two filenames must match
- Drag the shortcut to your Desktop

- Keeping with the example, the new shortcut name would be changed to: W74mTbLnk1 <Filetype:Shortcut>

6. Navigate to
%userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

Hint: You can copy the entire line above and paste it into an explorer address window, then hit enter
Note: This is a hidden folder - to see it and files in it, you need to change your folder options to "show hidden files, folders and drives"

7. Delete the shortcut in this location that was created when you pinned the dummy executable to the taskbar.
- For example: select W74mTbLnk1 <Filetype:Shortcut> and delete it
- Drag the new shortcut from your Desktop to this location
- you should see the W74mTbLnk1 <Filetype:Shortcut> that you just dragged in this folder

Notes:
1) The icon on the taskbar will be the default icon for an executable. After a reboot, the icon should change to the application associated with that Filetype
- For example: if the file you wanted to open was a PDF, then the Adobe Acrobat icon should appear on that taskbar link.

2) The pinned shortcut follows the target file even if you move (drag 'n drop) it
My System SpecsSystem Spec
22 Sep 2012   #28
Slartybart

x64 (6.3.9600) Win8.1 Pro & soon dual boot x64 (6.1.7601) Win7_SP1 HomePrem
 
 

Wait-a-minit.... You said (and I read too fast) that the existing shortcut already has the fully qualified file name in the target filed - right? i would expect that it does.

But does the target shortcut also have the fully qualified application in the target field?

Target = File.txt
or
Target = Notepad.exe File.txt
My System SpecsSystem Spec
22 Sep 2012   #29
Slartybart

x64 (6.3.9600) Win8.1 Pro & soon dual boot x64 (6.1.7601) Win7_SP1 HomePrem
 
 

No problem Layback and thank you too.
It isn't easy solving problems from afar.
My System SpecsSystem Spec
25 Sep 2012   #30
jimtalbert

Windows 7 Home Premium 64 bit
 
 

Thanks so much to all who offered suggestions. I received instructions from the software author today and they worked! I think they were basically what some or all of you had suggested but his knowing my program and file names made his steps easier to follow. Just for the record, here is what he said (with slight modifications for privacy):
After pining the file, right-click on the icon, then right-click on the program name and select “Properties”. There you need to change “Target” field to actual file, in your case it could be something like this:
“C:\Users\...\Documents\folder name\filename”, it should correspond to actual file location.
After this change you can open your file just by clicking on the pinned icon.
My System SpecsSystem Spec
Reply

 Unable to associate file with pinned icon




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Can't associate icon with txt files
I use Editpad Lite and I can't get my Win7 starter to change the default txt icon. Editpad has a specific dialogue for changing it to the green Editpad icon. This doesn't do it. Had no trouble setting it on other pc's. But it is not only Editpad, the txt icon won't change regardless of what txt...
General Discussion
Unable to associate .fp7 file with FileMaker Pro 11
When I right-click on the file and select Open with..., FileMaker Pro isn't listed as a Recommended Program or Other Program. When I Browse and select FileMaker Pro.exe, nothing happens. The file type doesn't become associated with the program and FMP isn't added as a Recommended or Other...
Software
Pinned Taskbar item open new icon instead of on top of pinned item?
I've got two laptops here. Both running Windows 7. On one when you pin an item to the taskbar and run that program it does not open another icon on the taskbar. On this one it will open a new icon on the taskbar. Why is this the case and how do I fix it please?
General Discussion
How do I change pinned .txt file icon to default.
How do I change pinned .txt file icon to default. I've pinned some of my text files on Notepad for faster access, but it is very annoying to see that old generic notepad icon. It wasn't like that before. I don't know how it happened. I've already tried rebuilding IconCache.db, restarted the...
General Discussion
Unable to associate file type to upgraded version of a program
I downloaded an upgrade to DxO Pro Optics. The old one, v6, was buggy so I upgraded to v7.1, which is in the v7 folder. I can't associate my raw Canon files to DxO v7.1, probably because in regedit it says: HKEY_CLASSES_ROOT\Applications\DxOOpticsPro.exe\shell\open\command it reads, under...
Software
Associate a file type
I accidentally associated the .lnk (shortcut) extension with a program. Now all my desktop icons open that program (Picassa). I tried to change it back to Unknown Program using "set associations - change programs" but it does not give the option to change it to "Unknown Association" Can anyone...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 14:52.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App