From: Kendall Gifford Date: 2010-11-09T06:49:50+09:00 Subject: Re: Maybe not a Ruby question but I still need to know On Sat, Nov 6, 2010 at 9:14 PM, Kaye Ng wrote: >> what are you saying? that you want"H:\Ruby\Practice\example1.rb" to run >> when you are in "C:\Documents and Settings\user" ?? if that's what >> you're asking it can't be done just using the filname! Either you CD >> into the folder, or provide the full pathname + filename, >> "H:\Ruby\Practice\example1.rb" >> > Yes I can and I have been doing that for several months now.  That's > because I've added "H:\Ruby\Practice" in my PATH VARIABLES > Does this other file in "H:\Ruby\Practice\" refuse to run at all: C:>Documents and Settings\me> my-script.rb 'my-script.rb' is not recognized as an internal or external command, operable program or batch file Or does it run but raise an exception when it tries to run the code that opens the text file you mentioned? I ask because I suspect this is an issue of your "current working directory" being different and the fact that you are opening this text file using a relative path name. -- Kendall Gifford zettabyte@gmail.com