From: Hans Mackowiak Date: 2011-07-22T00:20:43+09:00 Subject: Re: How to replace "\" from string. path = "C:\Gaurang\ruby\demo.xls" is not valid! you NEED path = "C:\\Gaurang\\ruby\\demo.xls" or path = 'C:\Gaurang\ruby\demo.xls' -- Posted via http://www.ruby-forum.com/.