Markus Roberts wrote: >>> Depenbding on whether running under windows or unix/mac I obviously >>> need >>> to use the \ instead of the / character for shell commands so I >>> have 2 >>> questions really >>> 1) I would love to know if anyone has a neat way of dealing with >>> converting paths to use '\' instead of '/' for use with command line >>> calls like command and backtick? > > Split it into segments and use File.join()...that's what it's there for. > > -- MarkusQ
File.join does exactly the same thing as Rails.root.join so that's no good at all. But thanks anyway. It was worth a thought. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

