HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP > Windows XP Basics

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 03-29-2007, 03:39 PM
Ron Stone
 
Posts: n/a
Default Command options ignored

I have been experimenting with Ruby.
I have set file extension .rb to invoke /bin/ruby.exe

If I run a Ruby program as follows, all is well: (my help is displayed)

ruby myprog.rb -h

If I run the program thus, the options are not passed to the program: (the
program just runs)

myprog.rb

Is this normal? Is there a way to pass the options with this invocation
type?

Thanks.


Reply With Quote
Sponsored Links
  #2  
Old 03-29-2007, 10:59 PM
Malke
 
Posts: n/a
Default Re: Command options ignored

Ron Stone wrote:
> I have been experimenting with Ruby.
> I have set file extension .rb to invoke /bin/ruby.exe
>
> If I run a Ruby program as follows, all is well: (my help is displayed)
>
> ruby myprog.rb -h
>
> If I run the program thus, the options are not passed to the program: (the
> program just runs)
>
> myprog.rb
>
> Is this normal? Is there a way to pass the options with this invocation
> type?


You've posted to a newsgroup for basic tech support of the Windows XP
operating system. You need to find a newsgroup for Ruby programmers.
This Google search will help:

http://www.google.com/search?hl=en&q...=Google+Search


Malke
--
Elephant Boy Computers
www.elephantboycomputers.com
"Don't Panic!"
MS-MVP Windows - Shell/User
Reply With Quote
  #3  
Old 03-30-2007, 03:20 PM
Ron Stone
 
Posts: n/a
Default Re: Command options ignored

My apologies.
I thought that the recognizing the file extension and invoking the
appropriate program (Ruby or otherwise) would be an XP thingy.
I'll try the Ruby forums.
Thanks.

"Malke" <notreally@invalid.invalid> wrote in message
news:eTZsPmhcHHA.4872@TK2MSFTNGP03.phx.gbl...
> Ron Stone wrote:
>> I have been experimenting with Ruby.
>> I have set file extension .rb to invoke /bin/ruby.exe
>>
>> If I run a Ruby program as follows, all is well: (my help is displayed)
>>
>> ruby myprog.rb -h
>>
>> If I run the program thus, the options are not passed to the program:
>> (the program just runs)
>>
>> myprog.rb
>>
>> Is this normal? Is there a way to pass the options with this invocation
>> type?

>
> You've posted to a newsgroup for basic tech support of the Windows XP
> operating system. You need to find a newsgroup for Ruby programmers. This
> Google search will help:
>
> http://www.google.com/search?hl=en&q...=Google+Search
>
>
> Malke
> --
> Elephant Boy Computers
> www.elephantboycomputers.com
> "Don't Panic!"
> MS-MVP Windows - Shell/User



Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
Reply


Thread Tools
Display Modes



All times are GMT. The time now is 11:44 PM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger