From: balzer Date: 2010-05-12T02:15:17+09:00 Subject: Re: help to run Ruby "Luis Lavena" wrote in message news:d6232bc8-39ab-4f25-8b77-e33f9300a241@i9g2000yqi.googlegroups.com... On May 11, 6:55 am, "balzer" wrote: > I am on windows XP. > > Ruby.exe is in directory "bin": > E:\Ruby\bin > > script is in directory "embed": > > E:\Ruby\myprogram-beta1\sources\scripts\embed > > how to run script which is in embed dir? > E:\Ruby\bin\ruby.exe E:\Ruby\myprogram-beta1\sources\scripts\embed Or preferable you add Ruby\bin to your PATH: SET PATH=%PATH%;E:\Ruby\bin And then you can invoke "ruby embed" directly from inside the scripts folder. HTH, -- Luis Lavena ------------ to add Ruby\bin to your PATH with: SET PATH=%PATH%;E:\Ruby\bin or SET PATH=%PATH%;E:\Ruby\bin\ruby.exe To invoke command directly from inside the scripts folder, should I directly run MS-DOS command ruby.exe embed.rb C:\Documents and Settings\User> ruby.exe embed.rb or or first change directory from default windows to E:\> ruby.exe embed.rb ? THANKS.