# Running Ruby from a CD

**URL:** <https://rubytalk.org/t/running-ruby-from-a-cd/9391>\
**Category:** ruby-talk\
**Created:** [18 December 2003 20:38 UTC](https://rubytalk.org/t/running-ruby-from-a-cd/9391 "2003-12-18T20:38:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iouri\_Kloubakov1](https://avatars.discourse-cdn.com/v4/letter/i/ecccb3/32.png) [@Iouri\_Kloubakov1](https://rubytalk.org/u/Iouri_Kloubakov1)\
**Post date:** [18 December 2003 20:38 UTC](https://rubytalk.org/t/running-ruby-from-a-cd/9391/1 "2003-12-18T20:38:37Z")

</div>

Hi,

> As an experiment I burned a CD witha Ruby intallation on it and in the  
> root directory of the CD I made a setup.bat that looks something like:
> 
> …\bin\ruby makebat.rb #creates a bat file in %TEMP% that sets …

Where does “…” bring you if you are in the root?

> %TEMP%setenv.bat #sets up TCL and TK env vars Ruby needs

The rest of the batch file will not be executed unless you do:

call %TEMP%setenv.bat

> …\bin\ruby main.rb #starts a little Ruby/TK gui

Regards,  
Yura.

---

<div class="post-metadata">

**Author:** ![Zach\_Dennis1](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@Zach\_Dennis1](https://rubytalk.org/u/Zach_Dennis1)\
**Post date:** [18 December 2003 20:41 UTC](https://rubytalk.org/t/running-ruby-from-a-cd/9391/2 "2003-12-18T20:41:26Z")

</div>

> > Where does “…” bring you if you are in the root?

It brings you nowhere new. You simply stay in “/”.

HTH,

Zach

---

<div class="post-metadata">

**Author:** ![Ptkwt](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@Ptkwt](https://rubytalk.org/u/Ptkwt)\
**Post date:** [19 December 2003 04:06 UTC](https://rubytalk.org/t/running-ruby-from-a-cd/9391/3 "2003-12-19T04:06:56Z")

</div>

In article [0F8F6BCAA80A854082B0159EA7679BC201F61AD9@doom](mailto:0F8F6BCAA80A854082B0159EA7679BC201F61AD9@doom),

> Hi,
> 
> > As an experiment I burned a CD witha Ruby intallation on it and in the  
> > root directory of the CD I made a setup.bat that looks something like:
> > 
> > …\bin\ruby makebat.rb #creates a bat file in %TEMP% that sets …
> 
> Where does “…” bring you if you are in the root?

Sorry, extra ‘.’.

> > %TEMP%setenv.bat #sets up TCL and TK env vars Ruby needs
> 
> The rest of the batch file will not be executed unless you do:
> 
> call %TEMP%setenv.bat
> 
> > …\bin\ruby main.rb #starts a little Ruby/TK gui

right.

Phil

> **···**
>
> Yura Kloubakov [yura@opmr.com](mailto:yura@opmr.com) wrote:
