Icon to open file with a specific application

  • Thread starter Thread starter Svetlana
  • Start date Start date
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
 
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,
 
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
 
- 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.
 
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.
 
Back
Top