Running Ruby from a CD

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.

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

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

HTH,

Zach

In article 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 wrote: