From: Jeremy Bopp Date: 2010-10-28T00:46:53+09:00 Subject: Re: Delete the files from mac system connected by windows. On 10/27/2010 6:22 AM, Arihan Sinha wrote: > System1: WinXP logged in with username :- teamcity > > System2:- MAC system (ip=172.20.10.65) with lepard 10.5 and logged in > with username:- developer > Can you please try the similar way and let me know the output > > C:\Documents and Settings\TeamCity>irb > irb(main):001:0> Dir.pwd > => "C:/Documents and Settings/TeamCity" > irb(main):002:0> Dir.chdir("172.20.10.65/Users/developer/Library") > Errno::ENOENT: No such file or directory - > 172.20.10.65/Users/developer/Library > from (irb):2:in `chdir' > from (irb):2 > irb(main):003:0> Dir.pwd > => "C:/Documents and Settings/TeamCity" > irb(main):004:0> Dir.chdir("/172.20.10.65/Users/developer/Library") > Errno::ENOENT: No such file or directory - > /172.20.10.65/Users/developer/Library > > from (irb):4:in `chdir' > 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