no nick,s. your code is very wrong:
1. var is named wrong
2. gsub wants in this form 2 Strings not one Regex
3. it does not work because there is no "\\" inside path

-- 
Posted via http://www.ruby-forum.com/.