On Sep 27, 8:25  
>
> Brian,
> I changed the code as you suggested, but I still do not get see the
> single backslash appearing in the string that gets sent to the test2.rb
>
> Here's the code:
> test1.rb:
> test2AbsolutePath = "C:\\test2.rb"
> text = "Sample Ruby '\\' String"
> system("ruby", test2AbsolutePath, text)
>
> test2.rb:
> text  ARGV[0]
> puts "text: #{text}"
>
> Current Output:
> text: Sample Ruby '' String
>
> Expected Output:
> text: Sample Ruby '\' String
>
> Please let me know what needs to be modified to get the single backslash
> in the output.
>

One important thing to mention is that multiple arguments with
Kernel.system are broken in 1.8.x. Patches are applied to 1.9.x to
solve that issue.

A workaround under 1.8 is use Rake and the alt_system:

http://github.com/jimweirich/rake/blob/master/lib/rake/alt_system.rb

--
Luis Lavena