Programmatically associate a file extension

Hi,

How can we programmatically associate a file extension to my program
using Ruby.

Please send information regarding this.

Thanks in Advance,
kumar

···

--
Posted via http://www.ruby-forum.com/.

if you are on windows, use ftype and assoc commands.

http://www.ss64.com/nt/ftype.html

···

On Tue, Apr 8, 2008 at 4:51 PM, Kumar Ca <kumar.anul@gmail.com> wrote:

Hi,

How can we programmatically associate a file extension to my program
using Ruby.

Please send information regarding this.

Thanks in Advance,
kumar

In which operating system?

It's non-trivial.

LOL

Learn Ruby on Rails! Check out the FREE VIDS (for a limited time) VIDEO #3 out NOW!
http://sensei.zenunit.com/

···

On 09/04/2008, at 12:51 AM, Kumar Ca wrote:

Hi,

How can we programmatically associate a file extension to my program
using Ruby.

Please send information regarding this.

Thanks in Advance,
kumar
--
Posted via http://www.ruby-forum.com/\.

Jano Svitok wrote:

···

On Tue, Apr 8, 2008 at 4:51 PM, Kumar Ca <kumar.anul@gmail.com> wrote:

Hi,

How can we programmatically associate a file extension to my program
using Ruby.

Please send information regarding this.

Thanks in Advance,
kumar

if you are on windows, use ftype and assoc commands.

Ftype - File type - Windows CMD - SS64.com

Thanks a lot

please give procedure for linux
--
Posted via http://www.ruby-forum.com/\.

Kumar Ca wrote:

Thanks a lot

please give procedure for linux

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan

Rule of Open-Source Programming #8:

Open-Source is not a panacea.

Kumar Ca wrote:

Jano Svitok wrote:

Hi,

How can we programmatically associate a file extension to my program
using Ruby.

Please send information regarding this.

Thanks in Advance,
kumar

if you are on windows, use ftype and assoc commands.

http://www.ss64.com/nt/ftype.html

Thanks a lot

please give procedure for linux

Linux does not use a "file extension" to associate a program with a
file. Instead, scripts typically have a "shebang" line at the top. This
is a comment to the script but, if it is present, the shell will use it
to determine what program to execute.

···

On Tue, Apr 8, 2008 at 4:51 PM, Kumar Ca <kumar.anul@gmail.com> wrote:

--
Posted via http://www.ruby-forum.com/\.