From: Nick da G Date: 2008-09-20T06:43:58+09:00 Subject: Re: Using Rails App (Models) in my Ruby script. Ok I just did a search on Ruby Forums and I think I found what I needed. Thank Brian for sending me in a right direction. It also looks like my error was related to Mac OS . I tried same code at work on my XP box and it works now. Damn I thought I was going crazy. Thanks for the help thou. for anyone else looking to setup scheduling on a Windows box for a ruby script. Just make your task call (pass it environment if you want)(and then pass it your great ruby script - make sure you use aboslute paths ) ruby c:\path to your great rails app\script\runner c:\my great ruby scripts folder\cron.rb (or whatever you want to call it. I would suggect to use no spaces in the folder names - other wise you might need to do fiddle with the extra quotes and it's annoying) Alternatively you can setup a .bat file ( if you want to do some extra stuff in windows batch mode - like driving yourself crazy or something) -- Posted via http://www.ruby-forum.com/.