# For Windows users only

**URL:** https://rubytalk.org/t/for-windows-users-only/1253
**Category:** ruby-talk
**Created:** [16 August 2002 21:49 UTC](https://rubytalk.org/t/for-windows-users-only/1253 "2002-08-16T21:49:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Bjorn\_Pettersen](https://avatars.discourse-cdn.com/v4/letter/b/ee7513/32.png) [@Bjorn\_Pettersen](https://rubytalk.org/u/Bjorn_Pettersen)
#### Post date: [16 August 2002 21:49 UTC](https://rubytalk.org/t/for-windows-users-only/1253/1 "2002-08-16T21:49:43Z")

</div>

> From: Hal E. Fulton [[mailto:hal9000@hypermetrics.com](mailto:hal9000@hypermetrics.com)]
> 
> From: “Brian D. Baker” [baker.921@osu.edu](mailto:baker.921@osu.edu)
> 
> > Hal E. Fulton wrote:
> > 
> > > At the command line, that is.
> > > 
> > > Problem: When you run a .rb file from the  
> > > command line, you have to type a (potentially  
> > > lengthy) command.
> > 
> > Run msconfig from Start Menu-\>Run. Under the “Environment” tab of  
> > the  
> > program that opens, there is a variable called PATH. The value of  
> > path  
> > is a semicolon delimited list of directories. Add C:\RUBY\BIN (or  
> > whatever directory holds ruby.exe on your computer) to the PATH  
> > variable  
> > and apply the changes. You might have to restart, but you won’t have  
> > to  
> > type the full path to ruby ever again!
> 
> Thanks. I’m well familiar with PATH. But I don’t  
> like typing this sort of thing:
> 
> ruby -Ithis -Ithat -Ithe\_other myprog.rb
> 
> But I don’t want to put _everything_ in RUBYLIB,  
> either.
> 
> Basically I was trying to
> 
> 1. Just type “myprog”
> 2. Get Windows to honor the #! line
> 3. Avoid the problems with batch files
> 
> I know: I should just run Linux all the time…

Look up the assoc and ftype commands and the pathext environment  
variable. (It will let you type just myprog, you don’t even have to type  
myprog.rb )

– bjorn

---

<div class="post-metadata">

### Author: ![James6](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@James6](https://rubytalk.org/u/James6)
#### Post date: [16 August 2002 23:36 UTC](https://rubytalk.org/t/for-windows-users-only/1253/2 "2002-08-16T23:36:14Z")

</div>

> Look up the assoc and ftype commands and the pathext environment  
> variable. (It will let you type just myprog, you don’t even have to type  
> myprog.rb )

I don’t think Win98 knows what to do with PATHEXT.

James

> **···**
>
> > – bjorn

---

<div class="post-metadata">

### Author: ![HAL\_9000](https://avatars.discourse-cdn.com/v4/letter/h/90ced4/32.png) [@HAL\_9000](https://rubytalk.org/u/HAL_9000)
#### Post date: [16 August 2002 23:42 UTC](https://rubytalk.org/t/for-windows-users-only/1253/3 "2002-08-16T23:42:33Z")

</div>

Right, nor does it have assoc or ftype.

Hal

> **···**
>
> ----- Original Message -----  
> From: " JamesBritt" [james@jamesbritt.com](mailto:james@jamesbritt.com)  
> To: “ruby-talk ML” [ruby-talk@ruby-lang.org](mailto:ruby-talk@ruby-lang.org)  
> Sent: Friday, August 16, 2002 6:36 PM  
> Subject: RE: For Windows users only…
> 
> > > Look up the assoc and ftype commands and the pathext environment  
> > > variable. (It will let you type just myprog, you don’t even have to type  
> > > myprog.rb )
> > 
> > I don’t think Win98 knows what to do with PATHEXT.
