From: Robert Klemme Date: 2011-09-12T22:13:55+09:00 Subject: Re: Network user on Linux On Mon, Sep 12, 2011 at 1:24 PM, Mario Ruiz wrote: > thanks a lot!!! it is working!! > > Another thing related to this is, I need to get access to a file that is > on network drive and the problem is I can access it on windows like > //fileserver.... > but in linyx is by using smb://fileserver so I need to identify which > system I'm using or if there is any way to do the same in both > systems... You could configure the URL and do this before file open on Windows: path_to_open = windows? : file_name.sub /^smb:/, '' : file_name Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/