File association works on one machine and not another

I

inews

I have an application for which I have to create a file association on
each computer where I use it.

I go to the "File Types" dialogue box.
Click "New"
Type the file extension
Click on the advanced settings
Click "New" in the actions area
Type "open"
Type "<path>.exe" "%1"
OK back to Windows Explorer

On computer A, every file with the file extension opens in the program
requested when I double click on it in Windows Explorer or click on a
hyperlink in Word or Excel.

On computer B, the program opens, but without opening the file on
which I double clicked.

Both computers have identical file assocations set up, as detailed
above.

Does anybody know why the assocation would work differently on one
machine compared to another?
 
P

Pegasus \(MVP\)

I have an application for which I have to create a file association on
each computer where I use it.

I go to the "File Types" dialogue box.
Click "New"
Type the file extension
Click on the advanced settings
Click "New" in the actions area
Type "open"
Type "<path>.exe" "%1"
OK back to Windows Explorer

On computer A, every file with the file extension opens in the program
requested when I double click on it in Windows Explorer or click on a
hyperlink in Word or Excel.

On computer B, the program opens, but without opening the file on
which I double clicked.

Both computers have identical file assocations set up, as detailed
above.

Does anybody know why the assocation would work differently on one
machine compared to another?

Try this on each machine:
- Click Start / Run / cmd {OK}
- Type these commands:
echo %ComputerName% > c:\test.txt
associate .XXX >> c:\test.txt
notepad c:\test.txt
- Paste the text you see into your reply and report which
machine is the problem machine.

You can download associate.exe for a day or two from here:
http://www.hotlinkfiles.com/files/1528231_0pbws/associate.exe
 
I

inews

Thanks Pegasus. Unfortunately, I am not 100% on what I'm doing with
those commands.

Have tried a few variations to get something useful back to you but no
results yet.

For example, your suggestion echo %ComputerName% > c:\test.txt". I
have typed this in substituting the full computer name (qualified with
local domain) or the short name, with and without echo (echo is
onanyway), creating a file as named in the suggestion and using that
verbatim, using a file which is associated with the program.

All to no avail. If I leave out "echo", I get an error "%ComputerName
% is not recognised as an internal or external command"... where
%ComputerName% indicates whichever name I have used in that particular
attempt. If I use "echo" in the command, I simply get returned to the
command line with no result.

"associate" is also not recognised as a command.

It seems I am missing something in your suggestion. Can you direct me
please? Thanks.
 
I

inews

Thanks anyway Pegasus. Just upgraded the application and my file
association started working.
 
A

Andrew Morton

For example, your suggestion echo %ComputerName% > c:\test.txt". I
have typed this in substituting the full computer name (qualified with
local domain) or the short name...

FYI, he meant for you type it exactly as that, not substituting it with
anything. It tells the computer it's an environment variable.

To see all of them, enter
set

at a command prompt.

Andrew
 

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