Re: File association works on one machine and not another

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.


On Jul 3, 2:02 am, "Pegasus \(MVP\)" <I....@xxxxxxxxxx> wrote:
<in...@xxxxxxxxxxxxxxx> wrote in message

news:cb1fcaad-6fff-4b5a-87ba-05c92c3c43db@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx





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- Hide quoted text -

- Show quoted text -

.



Relevant Pages

  • Re: NEWBIE variable substitution
    ... #  Live every life as if it were your last! ...   ... The eval does a second time the interpretation of that command line. ... $ echo $file ...
    (comp.unix.shell)
  • Re: parameter substitution combind with command substitution
    ... sh: foobar: Parameter not set. ... $ echo $foobar ... valid for this command. ...    It's not clear exactly what you want to do. ...
    (comp.unix.shell)
  • Re: Bash directory traversal with spaces
    ...   echo $1 ...   cd $1/src ... sh: myecho: command not found ...
    (comp.unix.shell)
  • Re: Parse Field
    ... The syntax can be seen at the command line with: ...    ) do set PID=%%G ... echo PID=%PID% ... if Not defined PID Echo PID not defined & Pause & goto:Eof ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Persisting env vars in cmd windows
    ... more about batch files as you go on, ... echo The time is %time::=.% ... But the piece de resistance was the "start" command, ... echo:: ERROR ERROR ERROR ERROR ...
    (microsoft.public.win2000.general)