> require 'win32ole'
> net = WIN32OLE.new('WScript.Network')
> user_name = 'some_user_name'
> password = 'top-secret-password'
>
> net.MapNetworkDrive( 'X:', '\\server\share', nil,  user_name, password )

What happens when you double up the backslashes?

  net.MapNetworkDrive( 'X:', '\\\\server\\share', nil,  user_name,
password )

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