How to make a particular file extension open with Ecopy desktop

Posted on 2009-12-18
Last Modified: 2012-05-08
I need to make files with a particular extension open up by default with Ecopy Desktop, in a similar way to how I forced a range of extensions to open with Windows Picture and Fax Viewer in my related question. I've got that technique now in mind but I don't know what I should be setting assoc .fileextension= to be in the same way as I set .tif for example to open in windows picture and fax viewer by doing assoc .tif=TIFImage.Document. Is there a library of what each program's tag name should be?
Question by:Grffster
    LVL 17

    Accepted Solution

    fast answer:
    right click on any of the files, then chose open with , then select the Ecopy program and check "use as the default for this file type"
    then click Ok
    LVL 19

    Expert Comment

    Have you looked at the following Microsoft KB article?

    Are you looking to do this programatically?
    LVL 38

    Assisted Solution

    Hi again Grffster

    >>> "Is there a library of what each program's tag name should be?" <<<

    Not sure I understand what you mean.  Are you referring to what I call the "friendly name" value (more correctly called the "File Type") that you find as the (Default) REG_SZ value under the keys up at the top of the HKEY_CLASSES_ROOT key with the dots? eg. the "abcfile" name in this example?



    If so, your best bet may be a couple of the excellent sites dedicated to providing details of file extensions:

    The problem is that some file extensions are used by more than one program on different computers, so it would be hard to create a rigid list.

    If you do what houssam_ballout has suggested, then open Regedit and go to the [HKEY_CLASSES_ROOT\.???] key for that ??? extension, you should be able to follow the "friendly name" value to the related key, you should be able to export both keys to a *.reg file and merge them on each of the PCs you need to create the file association on.

    The ASSOC command only allows you to change that "friendly name" (File Type) for an Extension:

    ASSOC [.ext[=[fileType]]]

    .ext         Specifies the file EXTENSION to associate the file type with
    fileType   Specifies the file TYPE to associate with the file extension

    The "File Type" they are referring to is what I call the "Friendly name", so all you can do is set the dotted extension to another File Type, like this to force *.LOG files to be treated as text files, and therefore to open in Notepad IF the "txtfile" File Type is still associated to Notepad as is the default:

    assoc .log=txtfile

    The command that you could use is FTYPE:

    FTYPE [fileType[=[openCommandString]]]

    fileType                          The file TYPE to examine or change
    openCommandString     The command for the "open" action

    eg. to make the "txtfile" File Type open in a program named BillPad.exe rather than Notepad.exe:

    ftype txtfile="C:\Program Files\BillPad\billpad.exe" "%1"

    Hope this helps
    LVL 38

    Assisted Solution

    By the way, what file extension are you going to change, and what is currently the associated program?

    The batch file below will create a report named "???_Association" in the same folder if you first edit it and change the SET= line to your dotted extension.
    @echo off
    REM Change the line below to your own extension,
    REM But don't change anything else in it.
    set EXT=.ABC
    for /f "tokens=2 delims=^=" %%a in ('assoc %EXT%') do set FileType=%%a
    reg query HKCR\%EXT% /s | find /v "REG.EXE" > %EXT:~1,3%_Association.txt
    reg query HKCR\%FileType% /s | find /v "REG.EXE" >> %EXT:~1,3%_Association.txt

    Open in new window


    Author Comment

    Unfortunately, I do not have ecopy on my pc so I'm waiting for someone else who has it to try out what you both say before I can apply a programmatical fix as you've suggested. The file types are the same as the related question i.e. extensions .001 up to .999.

    Author Closing Comment

    Once I found the friendly name for ecopy from an ecopy installation pc I just did a global replace on my previous regedit file used to allocate file extensions .001-.999 to be ecopy rather than tif image and this has worked. Thanks for all your help here.
    LVL 38

    Expert Comment

    Thank you Grffster.  I'm glad you were able to get it all working by modifying the previous .REG file.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
    Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now