From: "Randy W. Sims" Date: 2004-09-23T13:49:36+09:00 Subject: Re: Directory reading produces differnt files On 9/23/2004 12:35 AM, STEPHEN BECKER I V wrote: > Hello, > I am running ruby and exploring the different things i have this code > > [code] > [/code] > > So it just creates a file locally called monkey.txt with nothing going > in it. I have the file saved on my desk top c:\documents and > settings\iv\desktop\file.rb when i call it from a .bat file (drag the > rb file in to the bat) > > [code for bat] > @echo off > c:\ruby\bin\ruby.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 > pause > [/code] > > It outputs the file contents of c:\documents and settings\iv > but if i run it from SciTE it will output the documents on my desktop > Is SciTE setting something i don't see? SciTE probably sets the current working directory to the directory containing the script. You should use the complete absolute path to the file in your script or set the working directory. Randy.