From: Arihan Sinha Date: 2010-10-27T20:22:12+09:00 Subject: Re: Delete the files from mac system connected by windows. Rilindo Foster wrote in post #957435: > Mac is Unix, so the file path is going to be different - it's a forward > slash, rather than backslash: > >>> Dir.chdir("\\Users\\rilindo\\src\\test") > Errno::ENOENT: No such file or directory - \Users\rilindo\src\test > from (irb):3:in `chdir' > from (irb):3 >>> Dir.chdir("/Users/rilindo/src/test") > => 0 >>> Dir.pwd > => "/Users/rilindo/src/test" >>> ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |||||||||||||||||||||||||||||||||||||| I tried with above code but no result. 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> -- Posted via http://www.ruby-forum.com/.