Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > programmatically associate a file extension

Reply
Thread Tools

programmatically associate a file extension

 
 
Kumar Ca
Guest
Posts: n/a
 
      04-08-2008
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/.

 
Reply With Quote
 
 
 
 
Jano Svitok
Guest
Posts: n/a
 
      04-08-2008
On Tue, Apr 8, 2008 at 4:51 PM, 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


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

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

 
Reply With Quote
 
 
 
 
Kumar Ca
Guest
Posts: n/a
 
      04-08-2008
Jano Svitok wrote:
> On Tue, Apr 8, 2008 at 4:51 PM, 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

>
> 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
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Phillip Gawlowski
Guest
Posts: n/a
 
      04-08-2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kumar Ca wrote:
|
| Thanks a lot
|
| please give procedure for linux

http://www.google.com/

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

Rule of Open-Source Programming #8:

Open-Source is not a panacea.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkf7nM0ACgkQbtAgaoJTgL/33QCdH9cjQa3OLZaZ92dDxYzVe/b0
uxYAn3aOZqRB9HwEWtSNWk1URt2Y+xSU
=S6Wa
-----END PGP SIGNATURE-----

 
Reply With Quote
 
Tim Hunter
Guest
Posts: n/a
 
      04-08-2008
Kumar Ca wrote:
> Jano Svitok wrote:
>> On Tue, Apr 8, 2008 at 4:51 PM, 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

>>
>> 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.

http://en.wikipedia.org/wiki/Shebang_(Unix)
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Julian Leviston
Guest
Posts: n/a
 
      04-09-2008
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/.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert a .txt file extension to a .xls file extension? Steve ASP .Net 3 08-25-2006 05:43 PM
Associate a file to a servlet session senges Java 3 04-12-2006 06:16 PM
win32 - associate .pyw with a file extension... knutsample@gmail.com Python 1 08-22-2005 07:57 AM
setup associate application with file type =?Utf-8?B?ZGF2aWQ=?= ASP .Net 2 04-25-2005 04:49 PM
Associate argument with entry in header file Chandrashekar Tippur C Programming 8 08-22-2004 06:53 PM



Advertisments