From: Jeremy Bopp Date: 2010-10-28T21:32:48+09:00 Subject: Re: Delete the files from mac system connected by windows. On 10/28/2010 06:10 AM, Arihan Sinha wrote: > Jeremy Bopp wrote in post #957531: >> On 10/27/2010 6:22 AM, Arihan Sinha wrote: >>> Errno::ENOENT: No such file or directory - >>> from (irb):4 >>> irb(main):005:0> Dir.pwd >>> => "C:/Documents and Settings/TeamCity" >>> irb(main):006:0> >> >> Remember that you're using Windows to access a remote share using >> Windows file sharing. That means you need to use a UNC path to access >> the share, and a UNC path begins with either \\ or //. What you >> attempted above wouldn't even work if the system at 172.20.10.65 was a >> Windows system instead of a Mac. ;-) >> >> -Jeremy > > ######################### > > > For windows system I am using this which is working ok .. System1( > windows) to system2 ( windows) where ruby is running in system1 only..( > ruby need not to be installed in system2 because i am only accssing the > files from system2) > > irb(main):004:0* Dir.pwd > => "C:/Documents and Settings/TeamCity" # system1 path > => 0 > irb(main):006:0> Dir.pwd > => "//squish-vista-x86/C$/Users/TeamCity/AppData" #system2 path > irb(main):007:0> > > Now the similar way I am looking for Mac where the system2 is Mac ( > 172.20.10.65) > > so how would i change the dir from system1 to Mac system. > > I want to go to the 172.20.10.65(this is mac system > IP)/Users/teamcity/Library > > If you find the exact solution then pls let me know. As I mentioned in one of my other responses in this thread, I don't have a Mac and can only provide general guidance. First, make sure that whatever passes for Windows file sharing is enabled on the Mac. Next, check that you can use the Windows file explorer on system1 to access whatever path you want to access on the Mac. If it doesn't work at this point, go back and keep debugging until it does. Once you can use standard tools to access the data on the Mac, you can drop into Ruby to do your work without any extra effort, similar to accessing system2. -Jeremy