Where are file associations stored?

1

Hi Niki,

I understand that Windows Reader is the default Viewer for PDF files. What I was asking was how this was stored in the registry. (i.e. the specific key, name & data entries)

In Windows 7:
The key "HKEY_CLASSES_ROOT\.pdf" key has (Default) = "AcroExch.Document" (if you have Acrobat Reader installed).
The key "HKEY_CLASSES_ROOT\AcroExch.Document\Shell\Open\Command" has (Default) = ""C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" "%1""

In Windows 8 the .pdf key has (Default) = "" (blank).

As a result my software cannot open the linked pdf files since they look for a reader in the (Default) value.

I was wondering where the association was stored and accessed. I saw the "HKEY_CLASSES_ROOT\.pdf\OpenWithProgids" key but discounted this as the MSDN documentation said it was only used in XP. (see http://msdn.microsoft.com/en-us/library/bb166549(v=vs.80).aspx). However on further reading I see an addition community content that...

0 0
2

Freedesktop.org (previously called the X Desktop Group, thus the "XDG" abbreviation) is the group currently driving X standards like this (learn more at Wikipedia).

warvariuc's answer already mentions xdg-mime usage like:

xdg-mime default xnview.desktop image/jpeg

After lots of playing with image editors and viewers, I ended up with different viewers for different image types with almost no consistency, especially among the rarer image types.

I took the above command and assigned it to each of the MIME types controlled by the image viewers and then created a new image-viewer.desktop by cloning one of them (this is optional, you can merely reuse your favorite). Next, I manually verified that none of the MIME types would be incompatible with my new preferred application. Finally, I set that application to be the default for all of the other applications' MIME types:

sed '/^MimeType=/!d; s///; s/;/\n/g' \ ...
0 0
3

@Doug Harris' answer is only partially correct. The defaults system stores your local additions or overrides to the file associations. However, OS X comes with some default, system wide associations.

If you run lsregister -dump you'll see what Launch Services calls CoreTypes and the associations provided by applications it finds.

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/Current/Support/lsregister -dump

I haven't exhaustively scanned the output. There may be others sources indicated in that dump, but a large number of these types come from /System/Library/CoreServices/CoreTypes.bundle. There may be a plaintext or plist file in there where the types are enumerated. The associations I believe come from scanning the contents of *.app in known application locations. Here's where Launch Services understands TextWrangler is an editor to numerous file types:

...
0 0
4

Hi,

I had some more bad luck trying to install the GMAP stuff from the TOOLSHEd but revision 10 is broken since it does not allow you to select a section and just stores the programs in the main tree...

But when I tried to remove the tool I got the following error for every run, since the sniffers where still looking for a module called GMAP...

Which table should I nuke to get rid of this association? Where are the datatype associations stored?
There does not seem to be an XML file for this, so I hope i can just remove some lines from the postgres database table but there are no obvious table names I can find...

WARNING:galaxy.datatypes.registry:Error appending sniffer for datatype 'galaxy.datatypes.gmap:IntervalAnnotation' to sniff_order: No module named g! map WARNING:galaxy.datatypes.registry:Error appending sniffer for datatype 'galaxy.datatypes.gmap:SpliceSiteAnnotation' to sniff_order: No module named gmap WARNING:galaxy.datatypes.registry:Error...
0 0
5

I do appreciate the information on the Notes location on Mac. Respectfully though, I have a problem with step 4. I have several hundred notes, including attachments, such as images, links, PDF files. The notes are stored across numerous folders. Copying all this manually into another application, especially given various formats of the attachments, is simply impractical.

Is that all we can expect from Mac software/ecosystem, with all the feature glitz and push to the "seamless cloud", to resort to manual copy/paste workaround while disconnected from Internet? What is the point of having a backup, especially TimeMachine, if an average user can't easily run an intuitive restore operation?

Also, speaking of your point on how to prevent an immediate deletion of a restored Notes database. Would the following sequence work:

1. Disable Notes in iCloud Preferences, thus deleting them across all devices for the account, including the iCloud

2. Restore the...

0 0
6

When a function A is called from a point of execution, internally it is a JMP statement to the address pointing to function A. So the current point of execution is saved onto the stack, the PC loads the address of the called function A and continues.

To get back to the point of execution after the function call, the function block should have equal push and pops onto the stack. Normally in C on exiting the function, the stack variables defined are destroyed(which I presume means popped off the stack), but I decided to define a file descriptor variable inside my function. The code is below:

void main() { printf("In the beginning there was main()\n"); func_call(); printf("func_call complete\n"); while(1); } void func_call() { int fp; //Opening a file to get handle to it. fp = open("stack_flush.c", O_RDONLY); if (fp < 0 ) { perror("fp could not open stack_flush.c"); return; } }

On running this program and checking lsof, I can see that the fd is...

0 0
7
scud Wrote:After OS reinstall, I always lose file associations for my portable programs and I must again do "open with - always use blahblah" for all files to make assotiations...

How it is done in TCUP during install? How can I make my custom file associations? Is there any tool which can make that job saving and restoring file associations easier?

Search PortableApps.com forums, there was something like this. IIRC you had to enter every single association manually, but besides this it's workable. Once it's configured, you can add associations to the registry with a few clicks.

A similar thing is OpenFileTC in TC UP, however it works only with a hotkey (F3, F4 by default) and only within TC UP - it doesn't use registry but own configuration files.
It's much more comfortable to configure because whenever you approach unknown file type it asks you what to do with it. Manual configuration is also better here. Also, it's much more professionally done, but has...

0 0
8
This all depends somewhat on how that drive was put in.

We will name them, Old Computer is A, New Computer is B and Unknown Third Harddrive is C.

You put A into B. From what you describe, you see only B. You then put C into B, again you see B.

It sounds like you are leaving B's drive alone and adding on of the others. Thats the right thing to do.

Your files however, won't show up under my documents just yet. You need to go into my computer and select the just added harddrive. It will probably show as D Drive. Once you explore it, look for Documents and Settings. Pick the username you used to use, then keep looking. You will find a documents folder - that is the old My Documents. Your documents will be inside, copy them to where ever you want them now.

You will repeat this for my picutes, etc. Until you have moved all of your old files. Then, you should have everything you...

0 0
9

In Eclipse, you have a set of default editors set up in Preferences > General > Editors > File Associations. When you open a file, if you select "Open With" and choose an editor other than the default for that file type, Eclipse remembers which editor you chose for that file, and uses it again when you re-open that file later.

Where are these per-file overrides for which editor to use stored?

If Open With has been used to select a specific editor this is stored using

IFile file = ... the file file.setPersistentProperty(IDE.EDITOR_KEY, "editor id");

where IDE is org.eclipse.ui.ide.IDE.

you can use file.getPersistentProperty(IDE.EDITOR_KEY) to get this...

0 0
10

Hi Patrick,

You can either store the attachment in database or file system. The documented that you pointed is when you store the attachment in file system.

The attachment ID will be pointed to some directory in file system, and in that directory there will be an actual image with its version. If you attach image with same name twice, you would be able to see two images in that attachment ID directory with different version number.

Everytime you attach an Image, it will not be overwritten, however it will be added to that directory based on its version number. Which means they are creating a new file everytime they attach the image. For example when you first time attach an image it will be version one, and upon uploading the same image, it will be version two.

Hope this information helps, and feel free to ask if anything unclear.

Best Regards,
...

0 0
11

The following list are recommended best practices you should use when working with file associations.

Do Not Copy File Associations from the Registry

We recommended that you do not copy existing file associations from the registry. This often leads to the propagation of poorly formed file associations. Instead, you should follow the steps outlined in File Association Sample Scenario.

Avoid Hard-Coding Paths into the Registry Where Possible

Just as hard-coding paths into programs can cause problems, hard-coding paths into the registry can also lead to problems. Instead, you should use registry expansion strings (REG_EXPAND_SZ) to provide path independence where applicable. For example, instead of using this method:

HKEY_CLASSES_ROOT MyVendor.MyProgram.1 DefaultIcon (Default) = C:\WINNT\hta.exe,1

You should use this method:

HKEY_CLASSES_ROOT MyVendor.MyProgram.1 DefaultIcon (Default) = "%SYSTEMROOT%\hta.exe,1"

Always...

0 0
12

There are many situations where you need to be able to install two different applications onto a single Terminal Server for different groups of people that both use the same type of file. (Confused?) You’ll understand exactly what I mean with this example: The free Adobe Acrobat Reader and the full version of Adobe Acrobat.

By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.

You also agree that your personal information may be transferred and processed in the United States, and that you have read and agree to the Terms of Use and the Privacy Policy.

Most likely you have some users who need to use the expensive full version of Adobe Acrobat while other users simply need to be able to view PDF documents with the free Acrobat reader. Ideally you’d like to mix these users on the same Terminal Server.

The challenge is not about securing access to the...

0 0
13
SQL for Tivoli Storage Manager Useful SQL Statements for TSM
08/20/2016

This page has a collection of useful SQL statements for IBM Tivoli Storage Manager (TSM). Here you can find out a lot of selects that will help you to get information from TSM and to construct your own SQL statements.

If you have any selects to share or have any comments, please contact me at

List all information from db table

- TSM version 5 and 6 (the below output is from version 5) tsm: SERVER1> SELECT * FROM db AVAIL_SPACE_MB: 85000 CAPACITY_MB: 80000 MAX_EXTENSION_MB: 5000 MAX_REDUCTION_MB: 11808 PAGE_SIZE: 4096 USABLE_PAGES: 20480000 USED_PAGES: 16856530 PCT_UTILIZED: 82.3 MAX_PCT_UTILIZED: 85.2 PHYSICAL_VOLUMES: 17 BUFF_POOL_PAGES: 65536 TOTAL_BUFFER_REQ: 5555310 CACHE_HIT_PCT: 98.6 CACHE_WAIT_PCT: 0.0 BACKUP_RUNNING: NO BACKUP_TYPE: NUM_BACKUP_INCR: 0 BACKUP_CHG_MB: BACKUP_CHG_PCT: 14.5 LAST_BACKUP_DATE: 2007-07-22...
0 0
14

XCOPY is a lightweight Windows utility whose sole purpose is to help you create BAT files which can be run using command-line operations.

This tool comes in handy for all users who need to simply the copying process of multiple files or entire directories from one location to another and for copying files across a network.

Since this is a portable program, it is important to mention that it doesn’t leave any traces in the Windows Registry.

You can copy it on any USB flash drive or other devices, and take it with you whenever you to need to create BAT files on the breeze.

XCOPY sports a clean and simple layout that allows users to perform most operations with just a few clicks.

Basically, it proves to be extremely easy to work with this tool, as you only need to select the files or directories that you want to be moved, specify the saving directory, and provide a filename.

What’s more, the application offers quick access to the items and...

0 0
15

Detailed information for file extension DAT

Category: Data Files

File format: Open-Source

Open with Windows: Original program that created the file, text editor

Open with Linux: Original program that created the file, text editor

One of the more popular variants of the DAT file extension is the INDEX.DAT which is commonly associated with the shield attributes that focus on storing details based on the allowed websites visited by the user as well as saving information on his surfing history. It is normally stored with hidden properties in the same folder or directory as its associated application. The DAT file extension can also be seen in relation with video streams using the MPEG file extension formats. In this context, the DAT format file usually contains information on the type of video contained, its name, and length. This data however is normally stored in binary form and is not readable even if the file can be opened with a standard text...

0 0