From: Arihan Sinha Date: 2010-10-29T00:09:53+09:00 Subject: Re: Delete the files from mac system connected by windows. Heesob Park wrote in post #957794: > Hi, > > 2010/10/28 Arihan Sinha : >>> the share, and a UNC path begins with either \\ or //.  What you >> ruby need not to be installed in system2 because i am only accssing the >> 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. >> > You need to setup SMB File Sharing on Mac. > Refer to > http://macs.about.com/od/filesharing/ss/file-sharing-with-snow-leopard-win7.htm > > Regards, > Park Heesob ######################### Thanks everyone. I've done with lot of struggle since from yesterday. Its very straight forward though same way for other windows systems .No forward or back slash confusion:) windows to window system 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> window to mac sys C:\Users\arihan.sinha>irb irb(main):001:0> irb(main):002:0* irb(main):003:0* Dir.pwd => "C:/Users/arihan.sinha" irb(main):004:0> Dir.chdir("\\\\DEVELOPERS-IMAC\\arihan.sinha\\Library") => 0 irb(main):005:0> Dir.pwd => "//DEVELOPERS-IMAC/arihan.sinha/Library" irb(main):006:0> -- Posted via http://www.ruby-forum.com/.