file-type

Determine file type in Ruby

How does one reliably determine a file's type? File extension analysis is not acceptable. There must be a rubyesque tool similar to the UNIX file(1) command? This is regarding MIME or content type, not file system classifications, such as directory, file, or socket. ...

If I make a new file type for my program, how do I use "Open With" properly?

I made a program. I also made my own file type, which the program can create, open, and edit. In Explorer, I right clicked on this new file type and selected "Open With" and chose my program. Of course, it just opens the program without loading the file. How do I let my program know that it's being requested to open a file on startup...

Eclipse Perforce Plugin and Defaulting the File Type Modifier so Version is Updated

We migrated our version control system from CVS to Perforce and our Java dev team is using the Perforce plug-in in Eclipse (Mac). The version is no longer updating on adds/edits. We are using the $Revision keyword in our javadoc. According to the Perforce site, you have to use the +k modifier, effectively changing the file type from text...

What file type starts with BOSS 7?

I am looking at some files generated in the early 90s. One of them seems to hold references to data packed in some binary format in a number of large files. The first six bytes of the file are 0x42 0x4f 0x53 0x53 0x20 0x37 which spells BOSS 7. My searches of various sources of file type information, including /usr/share/file/magic hav...

Registering file type and custom document icon in .NET

I have application that produces files. I would like to connect those files with application so that double-click on file launches my application. Everything works properly except for annoyance that icon looks same like icon of my application. I would like to have one icon for application and one icon for it's documents. DefaultIcon va...

What file format contents starts with "URES"?

I have a number of files that contain data in a format I am not familiar with. All of the data files begin with the same byte sequence, presumably a file header, and the sequence is "URES". I'm assuming that these files are some kind of resource file, perhaps a collection of data or other files all embedded into one file; that's just a...

full path from file input using jquery

When I call val() on an input with type="file" I only get file name rather than full path. How can I get full path? ...