Any way to force a file to 'open with'?

Soldato
Joined
2 Jun 2004
Posts
18,423
I have a shortcut to the windows hosts file on my desktop, but every time I open it I get a box pop up and ask what I want to open it with.

For some reason I can't select 'always use the selected program to open this kind of file'. :confused: The check-box is greyed-out.

How do I make it so that it opens with wordpad every time?

(win xp pro sp3 btw)
 
Can you not make a shortcut to wordpad on the desktop and pass the hosts file in as a parameter? I've just tried it using notepad, set the shortcut target to:

Code:
%windir%\system32\notepad.exe c:\windows\system32\drivers\etc\hosts
 
Back
Top Bottom