From: MrZombie Date: 2010-05-07T19:50:06+09:00 Subject: Re: How to use Ruby portable? You could use a batch script to launch Ruby with the parameters you'd use to launch your script. Example: Your script resides in F:\foo-program\lib\foo.rb Ruby resides in F:\foo-program\ruby.exe Make a batch file that executes the following command and place it in F:\foo-program\: ruby.exe lib\foo.rb On 2010-05-06 08:53:51 -0400, balzer said: > "balzer" wrote in message > news:hrua85$a4f$1@news.eternal-september.org... >> >> "Damjan Rems" wrote in message >> news:cbbed86947f0131c33a01b42e7df036f@ruby-forum.com... >>> balzer wrote: >>>> "Marvin G�lker" wrote in message >>>> news:20e0dc93e4e2a1d8d772efcebfbd9e87@ruby-forum.com... >>>>>> If >>>>> So, just unzip your Ruby wherever you want it. In order to start ruby, >>>>> just do: >>>>> ---------- >>>>> C:\> I: >>>>> I:\> ruby\bin\ruby -v >>>>> ---------- >>>>> or whatever drive letter your USB device gets and however the ruby >>>>> directory is named. >>>>> >>>>> Marvin >>>>> -- >>>> -------------------- >>>> >>>> And where should be placed programs: inside Ruby directory? >>>> >>>> thank you. >>> >>> It doesn't matter at all. >>> >>> Go to whatever directory and type: i:\ruby\bin\ruby myrubyprog.rb >>> >>> by >>> TheR >>> -- >> ---------------- >> >> Type command where: in windows cmd prompt , MS DOS windows or other place? > ----------- > how to use it? for example Ruby in on F: > > F:\Ruby > > program is in > F:\Ruby\origami-1.0.0b > scripts are in > F:\Ruby\origami-1.0.0b\sources\scripts\parse which have 'parse.rb' > script i want run