From: dkmd_nielsen Date: 2008-02-18T23:49:57+09:00 Subject: Write a copy of the current script I would like to write a copy of the current script being executed. I've attempted to use __FILE__ and $0, but neither is returning the full path name of script. I get the file name, but not the path in which it resides. Anyone have a quick solution? def initialize @script = $0 # Save where the script is from puts "[#{@script}]" end returns "[AAN_StandardSetup.rb]" The script being run is a process setup, where the operations people fill in script parameters. The script then creates folder structures and performs particular functions. I want to save a copy of the script after the operations people have completed filling everything in. It would be saved in one of the folders created by the execution of the script. That's my dilemma...I want to save it somewhere after it has started executing. Tips and suggestions are appreciated. dvn