From: Peter Bailey Date: 2012-11-03T05:03:35+09:00 Subject: exception: can't convert nil into String Hello, I'm going nuts trying to figure out what's wrong with this script. Here's the top part of my code, where it's failing: require 'rubygems' require 'fileutils' require 'net/ftp' Dir.chdir("F:/workflows/graphics/asura-post/vijay/in") if Dir.glob("*.pdf").length == 0 then exit end pdffile = ARGV[0] FileUtils.cp(pdffile, "//mako/archive/vijay") FileUtils.mv(pdffile, "../scratch") It's failing on the simple first FileUtils.cp line. It says "uncaught exception: can't convert nil into String." The script acts on the first file it sees in the network folder. Any help would be appreciated. Thanks a lot, Peter -- Posted via http://www.ruby-forum.com/.