Icon to open file with a specific application

S

Svetlana

Hello,

I use Windows XP and I have assigned my *.txt files to open with
Wordpad.
I often make changes to some *.txt documents and therefore I have put
icons on my desktop. When I click on them, the text opens
automatically with Wordpad.

Yet I have one file for which I need more options than Wordpad and
therefore I would like to edit it with Word. To open it I would like
to have an icon on my desktop.

So basically here is what I am looking for:

- I want to have icons on my desktop:
A.txt
B.txt
C.txt
D.txt
Clicking on them will automatically edit the documents with
Wordpad.exe

- I want to make an exception for one file:
E.txt
For this file, clicking on the icon would automatically edit it with
Word.exe


I am looking for a solution with double-clicking on the icon, not
using the right-click menu.

How can I do that?

Sveta
 
G

Giuseppe Carmine De Blasio

I am looking for a solution with double-clicking on the icon, not
using the right-click menu.

How can I do that?

You can't more that one program to a particular extension. So it can't be
done the way you want it to.

HTH,
 
D

David Candy

Icon isn't a very technical term. You have objects that are represented by icons. If the object is a text file you want to open then no you can't. If it's a shortcut then change the shortcut as below (changing the path as there won't be an e.txt on your desktop).

winword %userprofile%\desktop\e.txt

in a shortcut will open the file with word.

However perhaps you should do it how it was designed to be done, Right Click - Open With
 
S

Steve Shattuck

- I want to have icons on my desktop:
A.txt
B.txt
C.txt
D.txt
Clicking on them will automatically edit the documents with
Wordpad.exe
- I want to make an exception for one file:
E.txt
For this file, clicking on the icon would automatically edit it with
Word.exe

Change the target for the e.txt file to Winword.exe "e:txt"

This will sidestep the association with WordPad and start the document in
Word. You will probably have to include the path to both the executable and
the text file.
 
S

Steve Shattuck

You can't more that one program to a particular extension. So it can't be
done the way you want it to.

Simply make the target of the shortcut Word with the document name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top